package
Version:
v0.50.0
Opens a new window with list of versions in this module.
Published: Feb 17, 2026
License: AGPL-3.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
¶
ptr provides functions to convert from/to pointers.
From dereferences a pointer.
func FromDef[T any](v *T, def T) T
FromDef dereferences a pointer.
It returns def if the pointer is nil.
To converts a value to pointer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.