util

package
v0.9.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max deprecated

func Max[T maths.EssentialNumTypes](v1 ...T) T

Max provides a maximum value out of the ones provided

Deprecated: use `maths.Max` instead

func Min deprecated

func Min[T maths.EssentialNumTypes](v1 ...T) T

Min provides a minimum value out of the ones provided

Deprecated: use `maths.Min` instead

func Or added in v0.9.3

func Or[T comparable](vals ...T) T

Or returns first non-zero item out of provides ones. If no argument is non-zero, it returns the zero value. Note: this is backported from go 1.22

Types

This section is empty.

Jump to

Keyboard shortcuts

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