MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Format

Method Format

postgres/parser/json/json.go:653–662  ·  view source on GitHub ↗
(buf *bytes.Buffer)

Source from the content-addressed store, hash-verified

651}
652
653func (j jsonArray) Format(buf *bytes.Buffer) {
654 buf.WriteByte('[')
655 for i := range j {
656 if i != 0 {
657 buf.WriteString(", ")
658 }
659 j[i].Format(buf)
660 }
661 buf.WriteByte(']')
662}
663
664func (j jsonObject) Format(buf *bytes.Buffer) {
665 buf.WriteByte('{')

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.80
FormatMethod · 0.65

Tested by

no test coverage detected