merger

package
v4.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

type Diff interface {
	Add(...interface{})
	Update(...interface{})
	Delete(...interface{})
	ToAdd() []interface{}
	ToUpdate() []interface{}
	ToDelete() []interface{}
}

Diff is a container resulting of Differ objects comparison

type Differ

type Differ interface {
	Equals(Differ) bool
	IsDeletable(m map[string]string) bool
	IsMergeable(Differ) bool
	GetUniqueId() string
	Merge(Differ, map[string]string) (Differ, error)
}

Differ provides a simple set of feature to compare and merge arbitrary structs

Jump to

Keyboard shortcuts

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