Documentation ¶
Index ¶
- func Filter[TVal any, TKey comparable](fn func(v TVal) (bool, TVal), values map[TKey]TVal) (ret []TVal)
- func GetKeys[T1 comparable, T2 ...](sources map[T1]T2) []T1
- func GetValue(obj map[string]any, key string, def any) any
- func SetValue(obj map[string]any, key string, val, def any)
- func Zip[TKey ..., TVal ...](keys []TKey, values []TVal) (zip map[TKey]TVal, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
func Filter[TVal any, TKey comparable](fn func(v TVal) (bool, TVal), values map[TKey]TVal) (ret []TVal)
Filter 过滤数组
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.