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 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. |
Click to show internal directories.
Click to hide internal directories.