package gojsonpointer
import "github.com/xeipuuv/gojsonpointer"
Index ¶
- type JsonPointer
- func NewJsonPointer(jsonPointerString string) (p JsonPointer, err error)
- func (p *JsonPointer) Delete(document interface{}) (interface{}, error)
- func (p *JsonPointer) Get(document interface{}) (interface{}, reflect.Kind, error)
- func (p *JsonPointer) Set(document interface{}, value interface{}) (interface{}, error)
- func (p *JsonPointer) String() string
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
Source Files ¶
- Version
- v0.0.0-20190905194746-02993c407bfb (latest)
- Published
- Sep 5, 2019
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 2 weeks ago –
Tools for package owners.