mapx

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2018 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyCanNotBeTypeAsserted = errors.New("key could not be type asserted")
View Source
var ErrKeyDoesNotExist = errors.New("key is not present in map")

Functions

func GetFloat32 added in v0.0.5

func GetFloat32(values map[interface{}]interface{}, key interface{}) (float32, error)

func GetFloat64 added in v0.0.5

func GetFloat64(values map[interface{}]interface{}, key interface{}) (float64, error)

func GetInt added in v0.0.5

func GetInt(values map[interface{}]interface{}, key interface{}) (int, error)

func GetInt32 added in v0.0.5

func GetInt32(values map[interface{}]interface{}, key interface{}) (int32, error)

func GetInt64 added in v0.0.5

func GetInt64(values map[interface{}]interface{}, key interface{}) (int64, error)

func GetString

func GetString(values map[interface{}]interface{}, key interface{}) (string, error)

func GetStringDefault

func GetStringDefault(values map[interface{}]interface{}, key interface{}, defaultValue string) string

func GetStringSlice added in v0.0.5

func GetStringSlice(values map[interface{}]interface{}, key interface{}) ([]string, error)

func GetStringSliceDefault added in v0.0.5

func GetStringSliceDefault(values map[interface{}]interface{}, key interface{}, defaultValue []string) []string

func GetTime added in v0.0.5

func GetTime(values map[interface{}]interface{}, key interface{}) (time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL