Documentation
¶
Index ¶
- func InterfaceWalk(obj interface{}, path interface{}) (val interface{}, has bool)
- type Object
- func (obj *Object) GetBool(path interface{}) bool
- func (obj *Object) GetFloat(path interface{}, def ...float64) (val float64, has bool)
- func (obj *Object) GetFloatSlice(path interface{}, def ...[]float64) (val []float64, has bool)
- func (obj *Object) GetInt(path interface{}, def ...int) (val int, has bool)
- func (obj *Object) GetIntSlice(path interface{}, def ...[]int) (val []int, has bool)
- func (obj *Object) GetInterface(path interface{}) (val interface{}, has bool)
- func (obj *Object) GetInterfaceSlice(path interface{}, def ...[]interface{}) (val []interface{}, has bool)
- func (obj *Object) GetObject(path interface{}) (val *Object, has bool)
- func (obj *Object) GetString(path interface{}, def ...string) (val string, has bool)
- func (obj *Object) GetStringSlice(path interface{}, def ...[]string) (val []string, has bool)
- func (obj *Object) GoInto(path interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterfaceWalk ¶
func InterfaceWalk(obj interface{}, path interface{}) (val interface{}, has bool)
* quick get the val from a interface
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func NewInterfaceWalker ¶
func NewInterfaceWalker(obj interface{}) *Object
func (*Object) GetFloatSlice ¶
func (*Object) GetIntSlice ¶
func (*Object) GetInterface ¶
func (*Object) GetInterfaceSlice ¶
func (*Object) GetStringSlice ¶
Click to show internal directories.
Click to hide internal directories.