Documentation
¶
Index ¶
- Variables
- func Any(vs []string, f func(any) bool) bool
- func ConvertStringMapToAny(m map[string]string) map[string]any
- func Filter(vs []string, f func(string) bool) []string
- func GetMapKeys[K comparable, V any](m map[K]V) []K
- func GetMapValues[K comparable, V any](m map[K]V) []V
- func JSONEncode(v any) (string, error)
- func Map(vs []string, f func(string) string) []string
- func MergeMaps[K comparable, V any](maps ...map[K]V) map[K]V
- func Reduce(source, initialValue, reducer any) (any, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ConvertStringMapToAny ¶
ConvertStringMapToAny converts a map of string elements to a map of any elements
func Filter ¶
Filter returns a new slice containing all strings in the slice that satisfy the predicate f.
func GetMapKeys ¶
func GetMapKeys[K comparable, V any](m map[K]V) []K
GetMapKeys returns the keys of a map
func GetMapValues ¶
func GetMapValues[K comparable, V any](m map[K]V) []V
GetMapKeys returns the keys of a map
func Map ¶
Map returns a new slice containing the results of applying the function f to each string in the original slice.
func MergeMaps ¶
func MergeMaps[K comparable, V any](maps ...map[K]V) map[K]V
MergeMaps merges two maps
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.