MCPcopy Create free account
hub / github.com/corestoreio/pkg / JSONIndent

Method JSONIndent

net/response/response.go:158–164  ·  view source on GitHub ↗

JSONIndent sends a JSON response with status code, but it applies prefix and indent to format the output.

(code int, i interface{}, prefix string, indent string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestPrintJSONIndentFunction · 0.80
TestPrintJSONIndentErrorFunction · 0.80

Calls 1

jsonMethod · 0.95

Tested by 2

TestPrintJSONIndentFunction · 0.64
TestPrintJSONIndentErrorFunction · 0.64