diff

package
v0.3.17 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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