mapdiff

package module
v0.0.0-...-c8acb90 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package mapdiff has some functions to diff 2 map[K]V.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff[M ~map[K]V, K, V comparable](l1, r1 M) (l M, common M, diff map[K]Pair[V], r M)

func DiffFunc

func DiffFunc[M ~map[K]V, K comparable, V any](l1, r1 M, cmp func(v1, v2 V) bool) (l M, common M, diff map[K]Pair[V], r M)

Types

type Pair

type Pair[V any] struct {
	L, R V
}

Jump to

Keyboard shortcuts

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