utils

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: BlueOak-1.0.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clamp

func Clamp[I constraints.Ordered](v I, min I, max I) I

func CopyMap

func CopyMap[K comparable, V any](m map[K]V) map[K]V

func MapItems

func MapItems[K comparable, V any](m map[K]V) []V

func MapKeys

func MapKeys[K comparable, V any](m map[K]V) []K

func Max

func Max[I constraints.Ordered](m I, ns ...I) I

func Min

func Min[I constraints.Ordered](m I, ns ...I) I

func ReverseSlice

func ReverseSlice[T any](s []T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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