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

Method RemoveIndex

pkg/util/json/encoded.go:684–690  ·  view source on GitHub ↗

RemoveIndex implements the JSON interface.

(idx int)

Source from the content-addressed store, hash-verified

682
683// RemoveIndex implements the JSON interface.
684func (j *jsonEncoded) RemoveIndex(idx int) (JSON, bool, error) {
685 decoded, err := j.shallowDecode()
686 if err != nil {
687 return nil, false, err
688 }
689 return decoded.RemoveIndex(idx)
690}
691
692// Concat implements the JSON interface.
693func (j *jsonEncoded) Concat(other JSON) (JSON, error) {

Callers

nothing calls this directly

Calls 2

shallowDecodeMethod · 0.95
RemoveIndexMethod · 0.65

Tested by

no test coverage detected