Documentation
ΒΆ
Index ΒΆ
- type Data
- func (d Data) Bool(key string) (bool, error)
- func (d Data) BoolOr(key string, defaultVal bool) bool
- func (d Data) Float32(key string) (float32, error)
- func (d Data) Float32Or(key string, defaultVal float32) float32
- func (d Data) Float64(key string) (float64, error)
- func (d Data) Float64Or(key string, defaultVal float64) float64
- func (d Data) Int(key string) (int, error)
- func (d Data) Int64(key string) (int64, error)
- func (d Data) Int64Or(key string, defaultVal int64) int64
- func (d Data) IntOr(key string, defaultVal int) int
- func (d Data) Interface(key string) (interface{}, error)
- func (d Data) InterfaceOr(key string, defaultVal interface{}) interface{}
- func (d Data) MapStringInterface(key string) (map[string]interface{}, error)
- func (d Data) MapStringInterfaceOr(key string, defaultVal map[string]interface{}) map[string]interface{}
- func (d Data) MapStringString(key string) (map[string]string, error)
- func (d Data) MapStringStringOr(key string, defaultVal map[string]string) map[string]string
- func (d Data) MustBool(key string) bool
- func (d Data) MustFloat32(key string) float32
- func (d Data) MustFloat64(key string) float64
- func (d Data) MustInt(key string) int
- func (d Data) MustInt64(key string) int64
- func (d Data) MustInterface(key string) interface{}
- func (d Data) MustMapStringInterface(key string) map[string]interface{}
- func (d Data) MustMapStringString(key string) map[string]string
- func (d Data) MustSliceInterface(key string) []interface{}
- func (d Data) MustSliceString(key string) []string
- func (d Data) MustString(key string) string
- func (d Data) MustUint(key string) uint
- func (d Data) MustUint64(key string) uint64
- func (d Data) Set(key string, val interface{}) error
- func (d Data) SetCreate(key string, val interface{}) error
- func (d Data) SetOverwrite(key string, val interface{})
- func (d Data) SliceInterface(key string) ([]interface{}, error)
- func (d Data) SliceInterfaceOr(key string, defaultVal []interface{}) []interface{}
- func (d Data) SliceString(key string) ([]string, error)
- func (d Data) SliceStringOr(key string, defaultVal []string) []string
- func (d Data) String(key string) (string, error)
- func (d Data) StringOr(key, defaultVal string) string
- func (d Data) Uint(key string) (uint, error)
- func (d Data) Uint64(key string) (uint64, error)
- func (d Data) Uint64Or(key string, defaultVal uint64) uint64
- func (d Data) UintOr(key string, defaultVal uint) uint
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
This section is empty.
Types ΒΆ
type Data ΒΆ
type Data map[string]interface{}
Data wrapper on map[string]interface{} to provide values for keys
func (Data) InterfaceOr ΒΆ
InterfaceOr provides interface{} from key or defaultVal
func (Data) MapStringInterface ΒΆ
MapStringInterface provides map[string]interface{} if available or else returns an error
func (Data) MapStringInterfaceOr ΒΆ
func (d Data) MapStringInterfaceOr(key string, defaultVal map[string]interface{}) map[string]interface{}
MapStringInterfaceOr provides map[string]interface{} from key or defaultVal
func (Data) MapStringString ΒΆ
MapStringString provides map[string]string if available or else returns an error
func (Data) MapStringStringOr ΒΆ
MapStringStringOr provides map[string]string from key or defaultVal
func (Data) MustFloat32 ΒΆ
MustFloat32 provides float32 from key or panics
func (Data) MustFloat64 ΒΆ
MustFloat64 provides float64 from key or panics
func (Data) MustInterface ΒΆ
MustInterface provides interface{} from key or panics
func (Data) MustMapStringInterface ΒΆ
MustMapStringInterface provides map[string]interface{} from key or panics
func (Data) MustMapStringString ΒΆ
MustMapStringString provides map[string]string from key or panics
func (Data) MustSliceInterface ΒΆ
MustSliceInterface provides []interface{} from key or panics
func (Data) MustSliceString ΒΆ
MustSliceString provides []string from key or panics
func (Data) MustString ΒΆ
MustString provides string from key or panics
func (Data) MustUint64 ΒΆ
MustUint64 provides uint64 from key or panics
func (Data) Set ΒΆ
Set is a method used to set a value at a given path, but will not create the path if missing
func (Data) SetCreate ΒΆ
SetCreate is a method used to set a value at a given path, and will create the path if missing, but will not overwrite
func (Data) SetOverwrite ΒΆ
SetOverwrite is a method used to set a value at a given path, and will create the path if missing and will overwrite values if they are not correct
func (Data) SliceInterface ΒΆ
SliceInterface provides []interface{} if available or else returns an error
func (Data) SliceInterfaceOr ΒΆ
SliceInterfaceOr provides []interface{} from key or defaultVal
func (Data) SliceString ΒΆ
SliceString provides []string if available or else returns an error
func (Data) SliceStringOr ΒΆ
SliceStringOr provides []string from key or defaultVal