From 8e92d4352f2b3557c3916ed82a1b3ba5881980a9 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 28 Aug 2015 23:38:09 +0800 Subject: slack JSON indent --- models/webhook_slack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/webhook_slack.go') diff --git a/models/webhook_slack.go b/models/webhook_slack.go index 9ae125873f..b9a39b64e0 100644 --- a/models/webhook_slack.go +++ b/models/webhook_slack.go @@ -42,7 +42,7 @@ type SlackAttachment struct { func (p *SlackPayload) SetSecret(_ string) {} func (p *SlackPayload) JSONPayload() ([]byte, error) { - data, err := json.Marshal(p) + data, err := json.MarshalIndent(p, "", " ") if err != nil { return []byte{}, err } -- cgit v1.2.3