Documentation
¶
Overview ¶
Package slicemap provides simple slice & map utility functions.
Index ¶
- func CopyMap(m map[string]any) map[string]any
- func Get[T any](m map[string]any, field string) (res T, ok bool)
- func In[T Ordered](s []T, query T) bool
- func Lookup(data map[string]any, path []string) (any, error)
- func SetValue(data map[string]any, path []string, value any)
- type Float
- type Integer
- type Ordered
- type Signed
- type Unsigned
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get returns a value from a map in a specified type. If either item is not present or of a different type, ok = false.
Types ¶
Click to show internal directories.
Click to hide internal directories.