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

Method toGoRepr

pkg/util/json/encoded.go:791–797  ·  view source on GitHub ↗

toGoRepr implements the JSON interface.

()

Source from the content-addressed store, hash-verified

789
790// toGoRepr implements the JSON interface.
791func (j *jsonEncoded) toGoRepr() (interface{}, error) {
792 decoded, err := j.shallowDecode()
793 if err != nil {
794 return nil, err
795 }
796 return decoded.toGoRepr()
797}
798
799// tryDecode implements the JSON interface.
800func (j *jsonEncoded) tryDecode() (JSON, error) {

Callers

nothing calls this directly

Calls 2

shallowDecodeMethod · 0.95
toGoReprMethod · 0.65

Tested by

no test coverage detected