MCPcopy Create free account
hub / github.com/segmentio/encoding / Indent

Function Indent

json/json.go:267–269  ·  view source on GitHub ↗

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

(dst *bytes.Buffer, src []byte, prefix, indent string)

Source from the content-addressed store, hash-verified

265
266// Indent is documented at https://golang.org/pkg/encoding/json/#Indent
267func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error {
268 return json.Indent(dst, src, prefix, indent)
269}
270
271// Marshal is documented at https://golang.org/pkg/encoding/json/#Marshal
272func Marshal(x any) ([]byte, error) {

Callers 5

TestIndentFunction · 0.85
TestIndentBigFunction · 0.85
TestIndentErrorsFunction · 0.85
MarshalIndentFunction · 0.85
EncodeMethod · 0.85

Calls

no outgoing calls

Tested by 3

TestIndentFunction · 0.68
TestIndentBigFunction · 0.68
TestIndentErrorsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…