common

package
v0.0.0-...-5857f47 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearArray

func ClearArray[T ~[]E, E any](t T)

func ClearMap

func ClearMap[T ~map[K]V, K comparable, V any](t T)

func Max

func Max[T cmp.Ordered](x, y T) T

func Min

func Min[T cmp.Ordered](x, y T) T

func OnceFunc

func OnceFunc(f func()) func()

OnceFunc is a wrapper around sync.OnceFunc.

func OnceValue

func OnceValue[T any](f func() T) func() T

OnceValue is a wrapper around sync.OnceValue.

func OnceValues

func OnceValues[T1, T2 any](f func() (T1, T2)) func() (T1, T2)

OnceValues is a wrapper around sync.OnceValues.

Types

This section is empty.

Directories

Path Synopsis
x
constraints
Package constraints defines a set of useful constraints to be used with type parameters.
Package constraints defines a set of useful constraints to be used with type parameters.

Jump to

Keyboard shortcuts

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