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

Method Add

pkg/util/json/json.go:282–284  ·  view source on GitHub ↗

Add appends JSON to the sequence.

(j JSON)

Source from the content-addressed store, hash-verified

280
281// Add appends JSON to the sequence.
282func (b *ArrayBuilder) Add(j JSON) {
283 b.jsons = append(b.jsons, j)
284}
285
286// Build returns the constructed JSON array. A caller may not modify the array,
287// and the ArrayBuilder reserves the right to re-use the array returned (though

Calls

no outgoing calls

Tested by

no test coverage detected