Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConflict = errors.Errorf("slice elements exsit conflict(s)")
Functions ¶
func Eq ¶
func Eq[T Comparable](a, b T) bool
func Get ¶
func Get[T Comparable](a, b T) bool
func Gt ¶
func Gt[T Comparable](a, b T) bool
func Let ¶
func Let[T Comparable](a, b T) bool
func Lt ¶
func Lt[T Comparable](a, b T) bool
func Neq ¶
func Neq[T Comparable](a, b T) bool
Types ¶
type Comparable ¶
type Map ¶
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
func New ¶
func New[K comparable, V any]() *Map[K, V]
func (*Map[K, V]) LoadAndRemove ¶
func (*Map[K, V]) LoadOrStore ¶
type Set ¶
type Set[K comparable] map[K]bool
func ToSet ¶
func ToSet[K comparable](vals []K, conv func(K) K) (s Set[K], err error)
Click to show internal directories.
Click to hide internal directories.