utils

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckComparableType

func CheckComparableType(a interface{}) bool

func CheckComparableTypes

func CheckComparableTypes(objs ...interface{}) bool

func Compare

func Compare(a, b interface{}, compare Comparator) int

func DeepEqual

func DeepEqual(a, b interface{}) bool

func Equal

func Equal(a, b interface{}) (bool, error)

object (a or b) that contains members that has equality defined will have equality defined or die.

Types

type Comparable

type Comparable interface {
	Equals(a, b interface{}) bool
}

type Comparator

type Comparator interface {
	Compare(a, b interface{}) int
}

Jump to

Keyboard shortcuts

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