2
0

slack JSON indent

This commit is contained in:
Unknwon
2015-08-28 23:38:09 +08:00
parent 4f756f6722
commit 908459e640

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
}