MCPcopy Create free account
hub / github.com/blues/note / newline

Function newline

jsonxt/indent.go:60–66  ·  view source on GitHub ↗
(dst *bytes.Buffer, prefix, indent string, depth int)

Source from the content-addressed store, hash-verified

58}
59
60func newline(dst *bytes.Buffer, prefix, indent string, depth int) {
61 dst.WriteByte('\n')
62 dst.WriteString(prefix)
63 for i := 0; i < depth; i++ {
64 dst.WriteString(indent)
65 }
66}
67
68// Indent appends to dst an indented form of the JSON-encoded src.
69// Each element in a JSON object or array begins on a new,

Callers 1

IndentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected