package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Jun 25, 2025
License: BSD-3-Clause-LBNL
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 Of[T any](value T) *T
Of returns a pointer to the given value.
This is a convenience function to create a pointer from a value.
Example:
p := ptr.Of(5)
will return a pointer to the value 5.
func ValOf[T any](value *T) T
Source Files
¶
Click to show internal directories.
Click to hide internal directories.