Documentation ¶
Index ¶
- Constants
- func ErrorNotParsed() error
- func ErrorTimeNotParsable(value string, layout string) error
- func ErrorTypeNotArray(value interface{}) error
- func ErrorTypeNotBool(value interface{}) error
- func ErrorTypeNotFloat64(value interface{}) error
- func ErrorTypeNotInt(value interface{}) error
- func ErrorTypeNotInterface(value interface{}) error
- func ErrorTypeNotObject(value interface{}) error
- func ErrorTypeNotString(value interface{}) error
- func ErrorTypeNotTime(value interface{}) error
- type Array
- func (a *Array) Array(reference int) *[]interface{}
- func (a *Array) Bool(reference int) *bool
- func (a *Array) Exists() bool
- func (a *Array) Float64(reference int) *float64
- func (a *Array) Int(reference int) *int
- func (a *Array) Interface(reference int) *interface{}
- func (a *Array) NotParsed() error
- func (a *Array) Object(reference int) *map[string]interface{}
- func (a *Array) Parse(arrayParsable structure.ArrayParsable) error
- func (a *Array) ReferenceExists(reference int) bool
- func (a *Array) References() []int
- func (a *Array) String(reference int) *string
- func (a *Array) StringArray(reference int) *[]string
- func (a *Array) Time(reference int, layout string) *time.Time
- func (a *Array) WithMeta(meta interface{}) structure.ArrayParser
- func (a *Array) WithReferenceArrayParser(reference int) structure.ArrayParser
- func (a *Array) WithReferenceObjectParser(reference int) structure.ObjectParser
- func (a *Array) WithSource(source structure.Source) *Array
- type Object
- func (o *Object) Array(reference string) *[]interface{}
- func (o *Object) Bool(reference string) *bool
- func (o *Object) Exists() bool
- func (o *Object) Float64(reference string) *float64
- func (o *Object) Int(reference string) *int
- func (o *Object) Interface(reference string) *interface{}
- func (o *Object) NotParsed() error
- func (o *Object) Object(reference string) *map[string]interface{}
- func (o *Object) Parse(objectParsable structure.ObjectParsable) error
- func (o *Object) ReferenceExists(reference string) bool
- func (o *Object) References() []string
- func (o *Object) String(reference string) *string
- func (o *Object) StringArray(reference string) *[]string
- func (o *Object) Time(reference string, layout string) *time.Time
- func (o *Object) WithMeta(meta interface{}) structure.ObjectParser
- func (o *Object) WithReferenceArrayParser(reference string) structure.ArrayParser
- func (o *Object) WithReferenceObjectParser(reference string) structure.ObjectParser
- func (o *Object) WithSource(source structure.Source) *Object
Constants ¶
View Source
const ( ErrorCodeTypeNotBool = "type-not-bool" ErrorCodeTypeNotFloat64 = "type-not-float64" ErrorCodeTypeNotInt = "type-not-int" ErrorCodeTypeNotString = "type-not-string" ErrorCodeTypeNotTime = "type-not-time" ErrorCodeTypeNotObject = "type-not-object" ErrorCodeTypeNotArray = "type-not-array" ErrorCodeTypeNotInterface = "type-not-interface" ErrorCodeTimeNotParsable = "value-not-parsable" ErrorCodeNotParsed = "not-parsed" )
Variables ¶
This section is empty.
Functions ¶
func ErrorNotParsed ¶
func ErrorNotParsed() error
func ErrorTimeNotParsable ¶
func ErrorTypeNotArray ¶
func ErrorTypeNotArray(value interface{}) error
func ErrorTypeNotBool ¶
func ErrorTypeNotBool(value interface{}) error
func ErrorTypeNotFloat64 ¶
func ErrorTypeNotFloat64(value interface{}) error
func ErrorTypeNotInt ¶
func ErrorTypeNotInt(value interface{}) error
func ErrorTypeNotInterface ¶
func ErrorTypeNotInterface(value interface{}) error
func ErrorTypeNotObject ¶
func ErrorTypeNotObject(value interface{}) error
func ErrorTypeNotString ¶
func ErrorTypeNotString(value interface{}) error
func ErrorTypeNotTime ¶
func ErrorTypeNotTime(value interface{}) error
Types ¶
type Array ¶
func NewArrayParser ¶
func (*Array) ReferenceExists ¶
func (*Array) References ¶
func (*Array) StringArray ¶
func (*Array) WithMeta ¶
func (a *Array) WithMeta(meta interface{}) structure.ArrayParser
func (*Array) WithReferenceArrayParser ¶
func (a *Array) WithReferenceArrayParser(reference int) structure.ArrayParser
func (*Array) WithReferenceObjectParser ¶
func (a *Array) WithReferenceObjectParser(reference int) structure.ObjectParser
type Object ¶
func NewObjectParser ¶
func (*Object) ReferenceExists ¶
func (*Object) References ¶
func (*Object) StringArray ¶
func (*Object) WithMeta ¶
func (o *Object) WithMeta(meta interface{}) structure.ObjectParser
func (*Object) WithReferenceArrayParser ¶
func (o *Object) WithReferenceArrayParser(reference string) structure.ArrayParser
func (*Object) WithReferenceObjectParser ¶
func (o *Object) WithReferenceObjectParser(reference string) structure.ObjectParser
Click to show internal directories.
Click to hide internal directories.