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

Method toGoRepr

pkg/util/json/encoded.go:862–868  ·  view source on GitHub ↗

toGoRepr implements the JSON interface.

()

Source from the content-addressed store, hash-verified

860
861// toGoRepr implements the JSON interface.
862func (j *jsonEncoded) toGoRepr() (interface{}, error) {
863 decoded, err := j.shallowDecode()
864 if err != nil {
865 return nil, err
866 }
867 return decoded.toGoRepr()
868}
869
870// tryDecode implements the JSON interface.
871func (j *jsonEncoded) tryDecode() (JSON, error) {

Callers

nothing calls this directly

Calls 2

shallowDecodeMethod · 0.95
toGoReprMethod · 0.65

Tested by

no test coverage detected