MCPcopy Create free account
hub / github.com/dolthub/doltgresql / toGoRepr

Method toGoRepr

postgres/parser/json/json.go:1737–1747  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1735func (j jsonString) toGoRepr() (interface{}, error) { return string(j), nil }
1736func (j jsonNumber) toGoRepr() (interface{}, error) { return json.Number(j.String()), nil }
1737func (j jsonArray) toGoRepr() (interface{}, error) {
1738 result := make([]interface{}, len(j))
1739 for i, e := range j {
1740 next, err := e.toGoRepr()
1741 if err != nil {
1742 return nil, err
1743 }
1744 result[i] = next
1745 }
1746 return result, nil
1747}
1748func (j jsonObject) toGoRepr() (interface{}, error) {
1749 result := make(map[string]interface{})
1750 for _, e := range j {

Callers

nothing calls this directly

Calls 1

toGoReprMethod · 0.65

Tested by

no test coverage detected