MCPcopy Index your code
hub / github.com/gogs/gogs / JSONPayload

Method JSONPayload

internal/database/webhook_slack.go:40–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40func (p *SlackPayload) JSONPayload() ([]byte, error) {
41 data, err := jsoniter.MarshalIndent(p, "", " ")
42 if err != nil {
43 return []byte{}, err
44 }
45 return data, nil
46}
47
48// see: https://api.slack.com/docs/formatting
49func SlackTextFormatter(s string) string {

Callers 2

createHookTaskFunction · 0.45
prepareHookTasksFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected