Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Last active March 20, 2019 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/df54975aad49a8a3c7ac2fb064837d4c to your computer and use it in GitHub Desktop.
Save abhirockzz/df54975aad49a8a3c7ac2fb064837d4c to your computer and use it in GitHub Desktop.
slackResponse := SlackResponse{Text: slackResponseStaticText, Attachments: []Attachment{Attachment{Text: title, ImageURL: url}}}
fdk.AddHeader(out, "Content-Type", "application/json")
json.NewEncoder(out).Encode(slackResponse)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment