Documentation
¶
Overview ¶
Package x provides miscellaneous helpers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneMapList ¶
func CloneMapList[T comparable](src map[T]*list.List) map[T]*list.List
CloneMapList duplicates a map containing a list.List
func CloneMapListFn ¶
func CloneMapListFn[K comparable, V any](src map[K]*list.List, fn func(v V) (V, bool)) map[K]*list.List
CloneMapListFn duplicates a map containing a list.List but allows the element's values to be cloned by a helper function
func MappedValueOr ¶
func MappedValueOr[K comparable, V any](m map[K]V, key K, def V) (V, bool)
MappedValueOr returns a value of an entry or a default if not found
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.