maps

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 0 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL