package
Version:
v0.9.0
Opens a new window with list of versions in this module.
Published: Nov 5, 2024
License: 0BSD
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func To[T any](value T) *T
To returns a pointer to the specified value.
This function never returns a nil pointer.
It is a quality of life workaround for Go's inability to do things like:
x := &int(42)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.