Lines Matching full:indent
60 func newline(dst *bytes.Buffer, prefix, indent string, depth int) {
64 dst.WriteString(indent)
68 // Indent appends to dst an indented form of the JSON-encoded src.
71 // copies of indent according to the indentation nesting.
75 func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error {
93 newline(dst, prefix, indent, depth)
106 // delay indent so that empty object and array are formatted as {} and [].
112 newline(dst, prefix, indent, depth)
120 // suppress indent in empty object/array
124 newline(dst, prefix, indent, depth)