package
Version:
v1.7.3
Opens a new window with list of versions in this module.
Published: Jan 2, 2026
License: BSD-3-Clause
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 to get pointers to basic types.
func Deref[T any](p *T) T
Deref returns the value pointed to by p.
If p is nil, it returns the zero value of type T.
func Point[T any](v T) *T
Point returns a pointer to the given value.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.