package
Version:
v1.0.132
Opens a new window with list of versions in this module.
Published: Feb 16, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Erase converts a variable of type T to an any by returning a pointer to that variable
func Erase0[T1 any](f func() T1) func() any
Erase0 converts a type safe function into an erased function
func Erase1[T1, T2 any](f func(T1) T2) func(any) any
Erase1 converts a type safe function into an erased function
func Erase2[T1, T2, T3 any](f func(T1, T2) T3) func(any, any) any
Erase2 converts a type safe function into an erased function
SafeUnerase converts an erased variable back to its original value
Unerase converts an erased variable back to its original value
Source Files
¶
Click to show internal directories.
Click to hide internal directories.