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

Method FetchValIdx

pkg/util/json/json.go:93–93  ·  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

91 // FetchValIdx implements the `->` operator for ints, returning nil if the
92 // key is not found.
93 FetchValIdx(idx int) (JSON, error)
94
95 // FetchValKeyOrIdx is used for path access, if obj is an object, it tries to
96 // access the given field. If it's an array, it interprets the key as an int

Callers 3

jsonNodeMethod · 0.65
eval.goFile · 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