Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureNotNil ¶
func EnsureNotNil[K comparable, V any](m map[K]V) map[K]V
EnsureNotNil ensures a given map is not nil. Returns a new empty (but non-nil) map if the original map was nil.
func MatchesFilters ¶ added in v0.1.10
func MatchesFilters[K comparable, V comparable]( kv map[K]V, inclusion map[K][]V, exclusion map[K][]V, ) bool
MatchesFilters returns true if the given map matches the given inclusion and exclusion filters. This requires that the map's values are comparable.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.