소스 검색

slack JSON indent

tags/v0.9.99
Unknwon 8 년 전
부모
커밋
8e92d4352f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      models/webhook_slack.go

+ 1
- 1
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
}

Loading…
취소
저장