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

Method Format

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

Source from the content-addressed store, hash-verified

908}
909
910func (j jsonArray) Format(buf *bytes.Buffer) {
911 buf.WriteByte('[')
912 for i := range j {
913 if i != 0 {
914 buf.WriteString(", ")
915 }
916 j[i].Format(buf)
917 }
918 buf.WriteByte(']')
919}
920
921func (j jsonObject) Format(buf *bytes.Buffer) {
922 buf.WriteByte('{')

Callers

nothing calls this directly

Calls 1

FormatMethod · 0.65

Tested by

no test coverage detected