generics

package
v0.0.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any[T any](_ T) bool

func BoolCompare

func BoolCompare(a, b bool) int

func Default

func Default[T any]() T

func Equal

func Equal(x, y any) bool

func NotAny

func NotAny[T any](_ T) bool

func NumericCompare

func NumericCompare[T constraints.Float | constraints.Integer](v1, v2 T) int

func OrderedCompare

func OrderedCompare[T constraints.Ordered](t1, t2 T) int

func Pointer

func Pointer[T any](v T) *T

func Self

func Self[T any](x T) T

func Value

func Value[T any](p *T) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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