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

Function init

pkg/util/json/json.go:1048–1059  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1046}
1047
1048func init() {
1049 encoding.PrettyPrintJSONValueEncoded = func(b []byte) (string, error) {
1050 rem, j, err := DecodeJSON(b)
1051 if err != nil {
1052 return "", err
1053 }
1054 if len(rem) != 0 {
1055 return "", errors.Newf("unexpected remainder after decoding JSON: %v", rem)
1056 }
1057 return j.String(), nil
1058 }
1059}
1060
1061// EncodeInvertedIndexKeys takes in a key prefix and returns a slice of inverted index keys,
1062// one per unique path through the receiver.

Callers

nothing calls this directly

Calls 2

DecodeJSONFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…