diff options
author | Unknwon <u@gogs.io> | 2015-08-28 23:38:09 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-28 23:38:09 +0800 |
commit | 8e92d4352f2b3557c3916ed82a1b3ba5881980a9 (patch) | |
tree | 9dff980a4823d13d08cc22ca5a8292255f032241 /models/webhook_slack.go | |
parent | f509c59ac13dffdff6a246572de04150ee295314 (diff) | |
download | gitea-8e92d4352f2b3557c3916ed82a1b3ba5881980a9.tar.gz gitea-8e92d4352f2b3557c3916ed82a1b3ba5881980a9.zip |
slack JSON indent
Diffstat (limited to 'models/webhook_slack.go')
-rw-r--r-- | models/webhook_slack.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |