MCPcopy Index your code
hub / github.com/segmentio/encoding / SetIndent

Method SetIndent

json/json.go:554–557  ·  view source on GitHub ↗

SetIndent is documented at https://golang.org/pkg/encoding/json/#Encoder.SetIndent

(prefix, indent string)

Source from the content-addressed store, hash-verified

552
553// SetIndent is documented at https://golang.org/pkg/encoding/json/#Encoder.SetIndent
554func (enc *Encoder) SetIndent(prefix, indent string) {
555 enc.prefix = prefix
556 enc.indent = indent
557}
558
559// SetSortMapKeys is an extension to the standard encoding/json package which
560// allows the program to toggle sorting of map keys on and off.

Callers 2

TestCodecFunction · 0.95
TestCodecDurationFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestCodecFunction · 0.76
TestCodecDurationFunction · 0.76