Documentation ¶
Overview ¶
Package maps provides a bunch of functions to work with maps This is originally intended to remove repeated code such as merging maps
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Merge ¶
func Merge[K comparable, T any](a, b map[K]T, overwrite bool) map[K]T
Merge takes two maps a and b and return the merged result. If overwrite is true then b will overwrite values in a on conflicting keys
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.