Skip to content

Commit 57409ad

Browse files
committed
JSON tags for email message
Signed-off-by: Vishal Rana <[email protected]>
1 parent 779b8a8 commit 57409ad

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

email/email.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ type (
2323
}
2424

2525
Message struct {
26-
ID string
27-
From string
28-
To string
29-
CC string
30-
Subject string
31-
Text string
32-
HTML string
33-
Inlines []*File
34-
Attachments []*File
26+
ID string `json:"id"`
27+
From string `json:"from"`
28+
To string `json:"to"`
29+
CC string `json:"cc"`
30+
Subject string `json:"subject"`
31+
Text string `json:"text"`
32+
HTML string `json:"html"`
33+
Inlines []*File `json:"inlines"`
34+
Attachments []*File `json:"attachments"`
3535
buffer *bytes.Buffer
3636
boundary string
3737
}

0 commit comments

Comments
 (0)