Documentation
¶
Index ¶
- type Array
- func (a Array) AsArray() []Value
- func (Array) AsBool() bool
- func (Array) AsFloat64() float64
- func (Array) AsInt64() int64
- func (Array) AsObject() map[string]Value
- func (Array) AsString() string
- func (Array) IsArray() bool
- func (Array) IsBool() bool
- func (Array) IsNull() bool
- func (Array) IsNumber() bool
- func (Array) IsObject() bool
- func (Array) IsString() bool
- func (Array) ValueType() json.ValueType
- type Bool
- func (Bool) AsArray() []Value
- func (b Bool) AsBool() bool
- func (Bool) AsFloat64() float64
- func (Bool) AsInt64() int64
- func (Bool) AsObject() map[string]Value
- func (Bool) AsString() string
- func (Bool) IsArray() bool
- func (Bool) IsBool() bool
- func (Bool) IsNull() bool
- func (Bool) IsNumber() bool
- func (Bool) IsObject() bool
- func (Bool) IsString() bool
- func (Bool) ValueType() json.ValueType
- type Null
- func (Null) AsArray() []Value
- func (Null) AsBool() bool
- func (Null) AsFloat64() float64
- func (Null) AsInt64() int64
- func (Null) AsObject() map[string]Value
- func (Null) AsString() string
- func (Null) IsArray() bool
- func (Null) IsBool() bool
- func (Null) IsNull() bool
- func (Null) IsNumber() bool
- func (Null) IsObject() bool
- func (Null) IsString() bool
- func (Null) ValueType() json.ValueType
- type Number
- func (Number) AsArray() []Value
- func (Number) AsBool() bool
- func (n Number) AsFloat64() float64
- func (n Number) AsInt64() int64
- func (Number) AsObject() map[string]Value
- func (Number) AsString() string
- func (Number) IsArray() bool
- func (Number) IsBool() bool
- func (Number) IsNull() bool
- func (Number) IsNumber() bool
- func (Number) IsObject() bool
- func (Number) IsString() bool
- func (Number) ValueType() json.ValueType
- type Object
- func (Object) AsArray() []Value
- func (Object) AsBool() bool
- func (Object) AsFloat64() float64
- func (Object) AsInt64() int64
- func (o Object) AsObject() map[string]Value
- func (Object) AsString() string
- func (Object) IsArray() bool
- func (Object) IsBool() bool
- func (Object) IsNull() bool
- func (Object) IsNumber() bool
- func (Object) IsObject() bool
- func (Object) IsString() bool
- func (Object) ValueType() json.ValueType
- type ParseError
- type String
- func (String) AsArray() []Value
- func (String) AsBool() bool
- func (String) AsFloat64() float64
- func (String) AsInt64() int64
- func (String) AsObject() map[string]Value
- func (s String) AsString() string
- func (String) IsArray() bool
- func (String) IsBool() bool
- func (String) IsNull() bool
- func (String) IsNumber() bool
- func (String) IsObject() bool
- func (String) IsString() bool
- func (String) ValueType() json.ValueType
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type Value ¶
type Value interface {
ValueType() json.ValueType
// These methods return whether or not the underlying value is of a
// given type.
IsNull() bool
IsBool() bool
IsNumber() bool
IsString() bool
IsArray() bool
IsObject() bool
// These methods always return the zero value for the given type unless it
// is the actual underlying value.
AsBool() bool
AsInt64() int64
AsFloat64() float64
AsString() string
AsArray() []Value
AsObject() map[string]Value
}
Click to show internal directories.
Click to hide internal directories.