package
Version:
v0.0.0-...-1329066
Opens a new window with list of versions in this module.
Published: Dec 9, 2024
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
¶
Package ptr provides helper functions for working with pointers.
func Deref[T any](value *T) T
Deref returns the value of the pointer passed in, or the zero value of the type if the pointer is nil.
func Ptr[T any](value T) *T
Ptr returns a pointer to the value passed in.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.