package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 7, 2026
License: Apache-2.0
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 small generic pointer helpers.
func Clone[T any](p *T) *T
Clone returns a pointer to a copy of *p, or nil if p is nil.
func Deref[T any](p *T) T
Deref returns *p, or the zero value of T if p is nil.
Of returns a pointer to a copy of v.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.