Documentation
¶
Overview ¶
nolint:exhaustive
nolint
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeMaps ¶
func MergeMaps[T1 comparable, T2 any](m1 map[T1]T2, m2 map[T1]T2) map[T1]T2
*
- MergeMaps merges two maps of the same type into a new map.
- If m1 and m2 contain the same key, the value will be get from m2. *
- Parameters:
- - m1: the first map to merge
- - m2: the second map to merge *
- Returns:
- A new map containing all key-value pairs from both input maps.
func WithPrefix ¶ added in v1.4.0
func WithPrefix(prefix string) option
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.