Documentation ¶
Index ¶
Constants ¶
View Source
const ( EscapedTilde = "~0" EscapedSlash = "~1" )
Variables ¶
View Source
var ( ErrJSONPointerInvalidSyntaxNoAnchorSlash = errors.New("invalid JSON Pointer format - no `#/`") ErrJSONPointerInvalidSyntaxNonOneAnchorSlash = errors.New("invalid JSON Pointer format - non-1 `#/`") )
Functions ¶
func PointerCondense ¶
PointerCondense removes duplicate slashes.
func PointerSubEscapeAll ¶
PointerSubEscapeAll will substitute vars using `fmt.Sprintf()`. All strings are escaped.
func PropertyNameEscape ¶
PropertyNameEscape escapes JSON property name using JSON Schema rules.
func PropertyNameUnescape ¶
PropertyNameUnescape unescapes JSON property name using JSON Schema rules.
Types ¶
type JSONPointer ¶
func ParseJSONPointer ¶
func ParseJSONPointer(s string) (JSONPointer, error)
Click to show internal directories.
Click to hide internal directories.