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

Method Format

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

Source from the content-addressed store, hash-verified

919}
920
921func (j jsonObject) Format(buf *bytes.Buffer) {
922 buf.WriteByte('{')
923 for i := range j {
924 if i != 0 {
925 buf.WriteString(", ")
926 }
927 encodeJSONString(buf, string(j[i].k))
928 buf.WriteString(": ")
929 j[i].v.Format(buf)
930 }
931 buf.WriteByte('}')
932}
933
934func (jsonNull) Size() uintptr { return 0 }
935

Callers

nothing calls this directly

Calls 2

encodeJSONStringFunction · 0.85
FormatMethod · 0.65

Tested by

no test coverage detected