Documentation
¶
Index ¶
- type Value
- type ValueMap
- func (vm ValueMap) GetBool(name string) bool
- func (vm ValueMap) GetFloat64(name string) float64
- func (vm ValueMap) GetInt(key string) int
- func (vm ValueMap) GetInt64(key string) int64
- func (vm ValueMap) GetIntArray(key string) []int
- func (vm ValueMap) GetString(key string) string
- func (vm ValueMap) GetStringArray(key string) []string
- func (vm ValueMap) GetValueMap(key string) ValueMap
- func (vm ValueMap) ToJSON() []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValueMap ¶
字典类型
func NewValueMapArray ¶
NewValueMapArray creates a new array of ValueMap objects from a byte array.
It takes a byte array as input and returns an array of ValueMap objects and an error.
func NewValuesFromJSON ¶
NewValuesFromJSON creates a new ValueMap from JSON data.
It takes a byte slice of JSON data as a parameter and returns a ValueMap and an error.
func (ValueMap) GetFloat64 ¶
GetFloat64 returns the float64 value associated with the given name in the ValueMap.
func (ValueMap) GetInt ¶
GetInt returns the integer value associated with the given name in the ValueMap.
func (ValueMap) GetInt64 ¶
GetInt64 returns the int64 value associated with the given name in the ValueMap.
func (ValueMap) GetIntArray ¶
GetIntArray returns an array of integers from the given key in the ValueMap.
func (ValueMap) GetString ¶
GetString returns the string value associated with the given name in the ValueMap.
func (ValueMap) GetStringArray ¶
GetStringArray returns an array of strings from the given key in the ValueMap.
func (ValueMap) GetValueMap ¶
GetValueMap returns a ValueMap for the given name.