Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ErrPointer is an error raised by the jsonpointer package ErrPointer pointerError = "JSON pointer error" // ErrInvalidStart states that a JSON pointer must start with a separator ("/") ErrInvalidStart pointerError = `JSON pointer must be empty or start with a "` + pointerSeparator // ErrUnsupportedValueType indicates that a value of the wrong type is being set ErrUnsupportedValueType pointerError = "only structs, pointers, maps and slices are supported for setting values" )
Variables ¶
This section is empty.
Functions ¶
func GetForToken ¶
GetForToken gets a value for a json pointer token 1 level deep
func SetForToken ¶
SetForToken gets a value for a json pointer token 1 level deep
Types ¶
type JSONPointable ¶
JSONPointable is an interface for structs to implement when they need to customize the json pointer process
type JSONSetable ¶
JSONSetable is an interface for structs to implement when they need to customize the json pointer process
type Pointer ¶
type Pointer struct {
// contains filtered or unexported fields
}
Pointer the json pointer reprsentation
func (*Pointer) DecodedTokens ¶
DecodedTokens returns the decoded tokens
func (*Pointer) IsEmpty ¶
IsEmpty returns true if this is an empty json pointer this indicates that it points to the root document
Click to show internal directories.
Click to hide internal directories.