MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Format

Method Format

pkg/util/json/json.go:614–625  ·  view source on GitHub ↗
(buf *bytes.Buffer)

Source from the content-addressed store, hash-verified

612}
613
614func (j jsonObject) Format(buf *bytes.Buffer) {
615 buf.WriteByte('{')
616 for i := range j {
617 if i != 0 {
618 buf.WriteString(", ")
619 }
620 encodeJSONString(buf, string(j[i].k))
621 buf.WriteString(": ")
622 j[i].v.Format(buf)
623 }
624 buf.WriteByte('}')
625}
626
627func (jsonNull) Size() uintptr { return 0 }
628

Callers

nothing calls this directly

Calls 2

encodeJSONStringFunction · 0.85
FormatMethod · 0.65

Tested by

no test coverage detected