Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonPointer ¶
type JsonPointer struct {
// contains filtered or unexported fields
}
func NewJsonPointer ¶
func NewJsonPointer(jsonPointerString string) (p JsonPointer, err error)
NewJsonPointer parses the given string JSON pointer and returns an object
func (*JsonPointer) Delete ¶
func (p *JsonPointer) Delete(document interface{}) (interface{}, error)
Uses the pointer to delete a value from a JSON document
func (*JsonPointer) Get ¶
func (p *JsonPointer) Get(document interface{}) (interface{}, reflect.Kind, error)
Uses the pointer to retrieve a value from a JSON document
func (*JsonPointer) Set ¶
func (p *JsonPointer) Set(document interface{}, value interface{}) (interface{}, error)
Uses the pointer to update a value from a JSON document
func (*JsonPointer) String ¶
func (p *JsonPointer) String() string
Pointer to string representation function
Click to show internal directories.
Click to hide internal directories.