MCPcopy Create free account
hub / github.com/1buran/rHttp / autoFormatJSON

Function autoFormatJSON

main.go:687–691  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

685}
686
687func autoFormatJSON(s string) string {
688 var out bytes.Buffer
689 json.Indent(&out, []byte(s), "", "\t")
690 return out.String()
691}
692
693func formatRespBody(ct, s string, autoformat bool) []string {
694 var content strings.Builder

Callers 1

formatRespBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected