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

Method FetchValIdx

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

FetchValIdx implements the `->` operator for ints, returning nil if the key is not found.

(idx int)

Source from the content-addressed store, hash-verified

152 // FetchValIdx implements the `->` operator for ints, returning nil if the
153 // key is not found.
154 FetchValIdx(idx int) (JSON, error)
155
156 // FetchValKeyOrIdx is used for path access, if obj is an object, it tries to
157 // access the given field. If it's an array, it interprets the key as an int

Callers 2

jsonNodeMethod · 0.65
FetchValIdxMethod · 0.65

Implementers 4

jsonNullpkg/util/json/json.go
jsonFalsepkg/util/json/json.go
jsonTruepkg/util/json/json.go
jsonEncodedpkg/util/json/encoded.go

Calls

no outgoing calls

Tested by

no test coverage detected