maps

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HaveConflict

func HaveConflict[K comparable, V comparable, S ~map[K]V](a, b S) error

HaveConflict checks if a and b have the same key, but different value

func MergeKeepFirst

func MergeKeepFirst[K comparable, V any, S ~map[K]V](a, b S) S

MergeKeepFirst merges a and b keeping the values in a in case of conflict

Types

This section is empty.

Jump to

Keyboard shortcuts

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