Documentation ¶
Index ¶
- func GetMapSlice[K comparable, T any](m Map[K], key K) ([]T, error)
- func GetMapValue[K comparable, V any](m Map[K], key K) (V, error)
- func RangeMapMap[K, K1 comparable, T any](m Map[K], key K, f func(K1, T) error) error
- func RangeMapSlice[K comparable, T any](m Map[K], key K, f func(T) error) error
- type Map
- func (m Map[K]) Contains(key K) bool
- func (m Map[K]) Get(key K) any
- func (m Map[K]) GetBool(key K) (bool, error)
- func (m Map[K]) GetComplex128(key K) (complex128, error)
- func (m Map[K]) GetFloat32(key K) (float32, error)
- func (m Map[K]) GetFloat64(key K) (float64, error)
- func (m Map[K]) GetInt(key K) (int, error)
- func (m Map[K]) GetInt64(key K) (int64, error)
- func (m Map[K]) GetMap(key K) (Map[K], error)
- func (m Map[K]) GetMapSlice(key K) ([]Map[K], error)
- func (m Map[K]) GetString(key K) (string, error)
- func (m Map[K]) GetUint(key K) (uint, error)
- func (m Map[K]) GetUint64(key K) (uint64, error)
- func (m Map[K]) Set(key K, val any)
- type MapCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapSlice ¶
func GetMapSlice[K comparable, T any](m Map[K], key K) ([]T, error)
func GetMapValue ¶
func GetMapValue[K comparable, V any](m Map[K], key K) (V, error)
func RangeMapMap ¶
func RangeMapMap[K, K1 comparable, T any](m Map[K], key K, f func(K1, T) error) error
func RangeMapSlice ¶
func RangeMapSlice[K comparable, T any](m Map[K], key K, f func(T) error) error
Types ¶
type Map ¶
type Map[K comparable] map[K]any
func MakeMap ¶
func MakeMap[K comparable]() Map[K]
func (Map[K]) GetFloat32 ¶
func (Map[K]) GetMapSlice ¶
type MapCache ¶
type MapCache[K comparable] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.