differs

package
v0.30.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetIPAddr

type NetIPAddr struct {
	DiffFunc func(path []string, a, b reflect.Value, p interface{}) error
}

NetIPAddr is a custom differ for netip.Addr

func (NetIPAddr) Diff

func (differ NetIPAddr) Diff(_ diff.DiffType, _ diff.DiffFunc, cl *diff.Changelog, path []string, a, b reflect.Value, _ interface{}) error

func (NetIPAddr) InsertParentDiffer

func (differ NetIPAddr) InsertParentDiffer(dfunc func(path []string, a, b reflect.Value, p interface{}) error)

func (NetIPAddr) Match

func (differ NetIPAddr) Match(a, b reflect.Value) bool

type NetIPPrefix

type NetIPPrefix struct {
	DiffFunc func(path []string, a, b reflect.Value, p interface{}) error
}

NetIPPrefix is a custom differ for netip.Prefix

func (NetIPPrefix) Diff

func (differ NetIPPrefix) Diff(_ diff.DiffType, _ diff.DiffFunc, cl *diff.Changelog, path []string, a, b reflect.Value, _ interface{}) error

func (NetIPPrefix) InsertParentDiffer

func (differ NetIPPrefix) InsertParentDiffer(dfunc func(path []string, a, b reflect.Value, p interface{}) error)

func (NetIPPrefix) Match

func (differ NetIPPrefix) Match(a, b reflect.Value) bool

Jump to

Keyboard shortcuts

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