maps

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: GPL-3.0 Imports: 3 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(config map[string]interface{}, key string) (bool, error)

func ByteArray

func ByteArray(config map[string]interface{}, key string) ([]byte, error)

func Display

func Display(prefix string, Map interface{})

Displays a map[interface{}]interface{}, map[string]interface{}, []interface{} while also iterating those types within

TODO use constraints

func HexInt

func HexInt(config map[string]interface{}, key string) (int, error)

func Int

func Int(config map[string]interface{}, key string) (int, error)

func IntKeys

func IntKeys(m map[int]interface{}) []int

func InterfaceToStringKeys

func InterfaceToStringKeys(m interface{}) (map[string]interface{}, error)

func Keys

func Keys(m map[string]interface{}) []string

func Number

func Number(config map[string]interface{}, key string) (float32, error)

Number is float32 so it's more portable

func SafeInterfaceToStringKeys

func SafeInterfaceToStringKeys(m interface{}) map[string]interface{}

func SafeStringKeys

func SafeStringKeys(m map[interface{}]interface{}) map[string]interface{}

func String

func String(config map[string]interface{}, key string) (string, error)

func StringArray

func StringArray(config map[string]interface{}, key string) ([]string, error)

func ToStringKeys

func ToStringKeys(m map[interface{}]interface{}) (map[string]interface{}, error)

func Vector

func Vector(config map[string]interface{}, key string) ([]float32, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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