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

Function Escape

pointer.go:765–767  ·  view source on GitHub ↗

Escape escapes a pointer reference token string. The JSONPointer specification defines "/" as a separator and "~" as an escape prefix. Keys containing such characters are escaped with the following rules: - "~" is escaped as "~0" - "/" is escaped as "~1"

(token string)

Source from the content-addressed store, hash-verified

763// - "~" is escaped as "~0"
764// - "/" is escaped as "~1"
765func Escape(token string) string {
766 return decRefTokReplacer.Replace(token)
767}

Callers 1

TestEscapingFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestEscapingFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…