maps

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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