Documentation ¶
Index ¶
- func IsKeyNotFoundError(err error) bool
- func IsTypeCastError(err error) bool
- type KeyNotFoundError
- type Object
- func (o Object) Bool(key string) (bool, error)
- func (o Object) Int64(key string) (int64, error)
- func (o Object) Keys() []string
- func (o Object) Object(key string) (Object, error)
- func (o Object) String(key string) (string, error)
- func (o Object) StringSlice(key string) ([]string, error)
- func (o Object) Value(key string) (interface{}, error)
- type TypeCastError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyNotFoundError ¶
type KeyNotFoundError struct {
// contains filtered or unexported fields
}
KeyNotFoundError ...
func NewKeyNotFoundError ¶
func NewKeyNotFoundError(key string, object Object) KeyNotFoundError
NewKeyNotFoundError ...
type Object ¶
type Object map[string]interface{}
Object ...
func (Object) StringSlice ¶
StringSlice ...
type TypeCastError ¶
type TypeCastError struct {
// contains filtered or unexported fields
}
TypeCastError ...
func NewTypeCastError ¶
func NewTypeCastError(key string, value interface{}, expected interface{}) TypeCastError
NewTypeCastError ...
Click to show internal directories.
Click to hide internal directories.