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.
79 func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error {
97 newline(dst, prefix, indent, depth)
110 // delay indent so that empty object and array are formatted as {} and [].
116 newline(dst, prefix, indent, depth)
124 // suppress indent in empty object/array
128 newline(dst, prefix, indent, depth)