@@ -58,35 +58,35 @@ type Message struct {
5858// Attachment let you add more context to a message, making them more useful and effective.
5959// See https://api.slack.com/docs/message-attachments
6060type Attachment struct {
61- Fallback * string `json:"fallback"`
62- Color * string `json:"color"`
63- PreText * string `json:"pretext"`
64- AuthorName * string `json:"author_name"`
65- AuthorLink * string `json:"author_link"`
66- AuthorIcon * string `json:"author_icon"`
67- Title * string `json:"title"`
68- TitleLink * string `json:"title_link"`
69- Text * string `json:"text"`
70- ImageUrl * string `json:"image_url"`
71- Fields []* Field `json:"fields"`
72- Footer * string `json:"footer"`
73- FooterIcon * string `json:"footer_icon"`
74- Timestamp * int64 `json:"ts"`
75- MarkdownIn * []string `json:"mrkdwn_in"`
76- Actions []* Action `json:"actions"`
77- CallbackID * string `json:"callback_id"`
78- ThumbnailUrl * string `json:"thumb_url"`
61+ Fallback string `json:"fallback"`
62+ Color string `json:"color"`
63+ PreText string `json:"pretext"`
64+ AuthorName string `json:"author_name"`
65+ AuthorLink string `json:"author_link"`
66+ AuthorIcon string `json:"author_icon"`
67+ Title string `json:"title"`
68+ TitleLink string `json:"title_link"`
69+ Text string `json:"text"`
70+ ImageUrl string `json:"image_url"`
71+ Fields []Field `json:"fields"`
72+ Footer string `json:"footer"`
73+ FooterIcon string `json:"footer_icon"`
74+ Timestamp int64 `json:"ts"`
75+ MarkdownIn []string `json:"mrkdwn_in"`
76+ Actions []Action `json:"actions"`
77+ CallbackID string `json:"callback_id"`
78+ ThumbnailUrl string `json:"thumb_url"`
7979}
8080
8181// AddField appends a new field to the Attachment
8282func (attachment * Attachment ) AddField (field Field ) * Attachment {
83- attachment .Fields = append (attachment .Fields , & field )
83+ attachment .Fields = append (attachment .Fields , field )
8484 return attachment
8585}
8686
8787// AddAction appends a new Action to the Attachment
8888func (attachment * Attachment ) AddAction (action Action ) * Attachment {
89- attachment .Actions = append (attachment .Actions , & action )
89+ attachment .Actions = append (attachment .Actions , action )
9090 return attachment
9191}
9292
0 commit comments