diff

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare added in v0.3.30

func Compare[T comparable](a, b T) bool

func Struct

func Struct[T any](old, new T, tag string) []string

Types

type Slice

type Slice[T any] struct {
	OnCompare func(a, b T) bool
	OnDelete  func(T)
	OnInsert  func(T)
	OnUpdate  func(prev, curr T)
}

func (Slice[T]) Compare

func (o Slice[T]) Compare(prev []T, curr []T)

Jump to

Keyboard shortcuts

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