Documentation
¶
Index ¶
- Variables
- func AsBoolean(v Value) bool
- func AsNumber(v Value) float64
- func AsObject(v Value) map[string]Value
- func AsString(v Value) string
- func Equal(v1, v2 Value) bool
- func IsArray(v Value) bool
- func IsBoolean(v Value) bool
- func IsNumber(v Value) bool
- func IsObject(v Value) bool
- func IsString(v Value) bool
- func ObjectKeys(v Value) []string
- type InvalidValueError
- type Pointer
- func (p *Pointer) Append(tokens ...string)
- func (p Pointer) Child(tokens ...string) Pointer
- func (p Pointer) Find(value interface{}) interface{}
- func (p Pointer) MarshalJSON() ([]byte, error)
- func (p *Pointer) MustParse(s string)
- func (p Pointer) Parent() Pointer
- func (p *Pointer) Parse(s string) error
- func (p *Pointer) Prepend(tokens ...string)
- func (p Pointer) String() string
- func (p *Pointer) UnmarshalJSON(data []byte) error
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidFormat = errors.New("invalid format")
Functions ¶
func ObjectKeys ¶
Types ¶
type InvalidValueError ¶
type InvalidValueError struct {
Value interface{}
}
func (*InvalidValueError) Error ¶
func (err *InvalidValueError) Error() string
type Pointer ¶
type Pointer []string
func NewPointer ¶
func (Pointer) MarshalJSON ¶
func (*Pointer) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.