Documentation
¶
Index ¶
Constants ¶
View Source
const ( EncodedTilde = "~0" EncodedSlash = "~1" Separator = '/' )
Consntants used in jspointer package. Mostly for internal usage only
Variables ¶
View Source
var ( ErrInvalidPointer = errors.New("invalid pointer") ErrCanNotSet = errors.New("field cannot be set to") ErrSliceIndexOutOfBounds = errors.New("slice index out of bounds") )
Errors used in jspointer package
Functions ¶
This section is empty.
Types ¶
type ErrNotFound ¶
type ErrNotFound struct {
Ptr string
}
func (ErrNotFound) Error ¶
func (e ErrNotFound) Error() string
type JSONGetter ¶
type JSPointer ¶
type JSPointer struct {
// contains filtered or unexported fields
}
JSPointer represents a JSON pointer
func New ¶
New creates a new JSON pointer for given path spec. If the path fails to be parsed, an error is returned
Click to show internal directories.
Click to hide internal directories.