1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-21 12:44:49 -05:00

slack JSON indent

This commit is contained in:
Unknwon 2015-08-28 23:38:09 +08:00
parent f509c59ac1
commit 8e92d4352f

View file

@ -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
}