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

Method toGoRepr

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

Source from the content-addressed store, hash-verified

1658func (j jsonString) toGoRepr() (interface{}, error) { return string(j), nil }
1659func (j jsonNumber) toGoRepr() (interface{}, error) { return json.Number(j.String()), nil }
1660func (j jsonArray) toGoRepr() (interface{}, error) {
1661 result := make([]interface{}, len(j))
1662 for i, e := range j {
1663 next, err := e.toGoRepr()
1664 if err != nil {
1665 return nil, err
1666 }
1667 result[i] = next
1668 }
1669 return result, nil
1670}
1671func (j jsonObject) toGoRepr() (interface{}, error) {
1672 result := make(map[string]interface{})
1673 for _, e := range j {

Callers

nothing calls this directly

Calls 1

toGoReprMethod · 0.65

Tested by

no test coverage detected