utils

package
v0.0.0-...-e864873 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clamp

func Clamp(v, minv, maxv int) int

Clamp returns the value clamped between the min and max values.

func IterPtrs

func IterPtrs[T any](in iter.Seq[T]) iter.Seq[*T]

IterPtrs returns an iterator of pointers to the given values.

func Ptr

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

Ptr returns a pointer to the given value.

func Ptrs

func Ptrs[T any](v ...T) (out []*T)

Ptrs returns a slice of pointers to the given values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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