Documentation
¶
Index ¶
- type Map
- func (m Map) AsMapOfInterface() map[string]interface{}
- func (m Map) DeletePath(name string) error
- func (m Map) GetBool(name string) bool
- func (m Map) GetFloat(name string) float64
- func (m Map) GetInt(name string) int
- func (m Map) GetInt64(name string) int64
- func (m Map) GetInterface(name string) interface{}
- func (m Map) GetKeys() []string
- func (m Map) GetMap(name string) Map
- func (m Map) GetPath(name string) (interface{}, bool)
- func (m Map) GetSliceOfFloat(name string) []float64
- func (m Map) GetSliceOfInt(name string) []int
- func (m Map) GetSliceOfMap(name string) []Map
- func (m Map) GetSliceOfString(name string) []string
- func (m Map) GetString(name string) string
- func (m Map) SetBool(name string, value bool)
- func (m Map) SetFloat(name string, value float64)
- func (m Map) SetInt(name string, value int)
- func (m Map) SetInt64(name string, value int64)
- func (m Map) SetPath(name string, value interface{}) error
- func (m Map) SetString(name string, value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map map[string]interface{}
Map implements some quality of life extensions to a standard map[string]interface{}
func (Map) AsMapOfInterface ¶ added in v0.1.0
AsMapOfInterface returns the underlying map datastructure
func (Map) DeletePath ¶ added in v0.1.0
DeletePath implements the path.Deleter interface
func (Map) GetInterface ¶ added in v0.0.2
GetInterface returns a named option without any conversion. You get what you get.
func (Map) GetSliceOfFloat ¶ added in v0.0.3
GetSliceOfFloat returns a named option as a slice of float64 values
func (Map) GetSliceOfInt ¶ added in v0.0.3
GetSliceOfInt returns a named option as a slice of int values
func (Map) GetSliceOfMap ¶ added in v0.1.0
GetSliceOfMap returns a named option as a slice of datatype.Map objects.
func (Map) GetSliceOfString ¶ added in v0.0.3
GetSliceOfString returns a named option as a slice of strings
Click to show internal directories.
Click to hide internal directories.