package
Version:
v1.0.0-beta.18
Opens a new window with list of versions in this module.
Published: Jan 12, 2025
License: MIT
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 FromPtr[T any](v *T) (zero T)
FromPtr takes an input ptr to a value and returns its value.
In case the ptr is nil, a zero value is returned.
func ToPtr[T any](v T) *T
ToPtr takes an input value and returns its associated ptr.
Note that as the input may not be a ptr, a copy may be done.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.