MCPcopy Index your code
hub / github.com/go-openapi/jsonpointer / New

Function New

pointer.go:49–54  ·  view source on GitHub ↗

New creates a new json pointer from its string representation.

(jsonPointerString string)

Source from the content-addressed store, hash-verified

47
48// New creates a new json pointer from its string representation.
49func New(jsonPointerString string) (Pointer, error) {
50 var p Pointer
51 err := p.parse(jsonPointerString)
52
53 return p, err
54}
55
56// Get uses the pointer to retrieve a value from a JSON document.
57//

Calls 1

parseMethod · 0.95