maps

package
v1.91.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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