cmp

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparablePtr

func ComparablePtr[T comparable](a, b *T) bool

func DecimalPtr

func DecimalPtr(a, b *decimal.Decimal) bool

func GormModelPtr

func GormModelPtr(a, b *gorm.Model) bool

func Map

func Map[T _comparable[T], K comparable](a, b map[K]T) bool

func MapAny

func MapAny[K comparable, T any](a, b map[K]T) bool

func Slice

func Slice[T _comparable[T], TS ~[]T](a, b TS, sortFn func(i, j T) bool) bool

func SliceAny

func SliceAny[T any, TS ~[]T](a, b TS, sortFn func(i, j T) bool) bool

func SliceComparable

func SliceComparable[T comparable, TS ~[]T](a, b TS) bool

func SliceComparablePtr

func SliceComparablePtr[T comparable, TS ~[]*T](a, b TS) bool

func TimeLocationPtr

func TimeLocationPtr(a, b *time.Location) bool

func TimePtr

func TimePtr(a, b *time.Time) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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