maps

package
v1.10.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterByKeyPrefix

func FilterByKeyPrefix(input map[string]string, prefix string) map[string]string

FilterByKeyPrefix returns a sub-map of the input that only contains keys starting with 'prefix'.

func Merge added in v1.10.0

func Merge[K comparable, V any](base map[K]V, overrides map[K]V) map[K]V

Merge merges the two maps and returns the result. For overlapping keys, values from overrides take precedence.

Types

This section is empty.

Jump to

Keyboard shortcuts

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