Documentation ¶
Index ¶
- func IsAllNumber(v Array) bool
- func IsNumber(v interface{}) bool
- func Marshal(v interface{}) ([]byte, error)
- func Unmarshal(data []byte) (interface{}, error)
- type Array
- type Boolean
- type ExtJSONMatcher
- type ExtRegexp
- type Number
- type Object
- func (o Object) Get(name string) interface{}
- func (o Object) GetArray(name string) (Array, error)
- func (o Object) GetBoolean(name string) (Boolean, error)
- func (o Object) GetNumber(name string) (Number, error)
- func (o Object) GetObject(name string) (Object, error)
- func (o Object) GetString(name string) (String, error)
- func (o Object) Has(name string) bool
- func (o Object) Set(name string, v interface{}) Object
- func (o Object) SetByPath(path *Path, v interface{}) (Object, error)
- func (o Object) String() string
- type Path
- type String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAllNumber ¶ added in v1.1.3
Types ¶
type ExtJSONMatcher ¶ added in v1.1.4
type ExtJSONMatcher struct {
// contains filtered or unexported fields
}
func MakeExtJSONMatcher ¶ added in v1.1.4
func MakeExtJSONMatcher(v interface{}) ExtJSONMatcher
func NewExtJSONMatcher ¶ added in v1.1.5
func NewExtJSONMatcher(v interface{}) *ExtJSONMatcher
func (ExtJSONMatcher) Matches ¶ added in v1.1.4
func (m ExtJSONMatcher) Matches(v interface{}) bool
func (ExtJSONMatcher) Unwrap ¶ added in v1.1.4
func (m ExtJSONMatcher) Unwrap() interface{}
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
func (*Path) RemoveLast ¶
func (p *Path) RemoveLast()
Click to show internal directories.
Click to hide internal directories.