strmap

package
v0.0.0-...-d31700d Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 3 Imported by: 0

README

strmap

map with string keys and interface{} values.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(data map[interface{}]interface{}, path string) (
	map[string]interface{}, error,
)

func ConvertSlice

func ConvertSlice(slice []interface{}, path string) (result []interface{}, err error)

Types

type StrMap

type StrMap map[string]interface{}

func (StrMap) Get

func (s StrMap) Get(key string) StrMap

func (StrMap) GetBool

func (s StrMap) GetBool(key string) bool

func (StrMap) GetInt

func (s StrMap) GetInt(key string) int

func (StrMap) GetInt16

func (s StrMap) GetInt16(key string) int16

func (StrMap) GetInt32

func (s StrMap) GetInt32(key string) int32

func (StrMap) GetInt64

func (s StrMap) GetInt64(key string) int64

func (StrMap) GetInt8

func (s StrMap) GetInt8(key string) int8

func (StrMap) GetSlice

func (s StrMap) GetSlice(key string) (results []StrMap)

func (StrMap) GetString

func (s StrMap) GetString(key string) string

func (StrMap) GetStringSlice

func (s StrMap) GetStringSlice(key string) []string

func (StrMap) GetUint

func (s StrMap) GetUint(key string) uint

func (StrMap) GetUint16

func (s StrMap) GetUint16(key string) uint16

func (StrMap) GetUint32

func (s StrMap) GetUint32(key string) uint32

func (StrMap) GetUint64

func (s StrMap) GetUint64(key string) uint64

func (StrMap) GetUint8

func (s StrMap) GetUint8(key string) uint8

Jump to

Keyboard shortcuts

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