package
Version:
v0.5.6
Opens a new window with list of versions in this module.
Published: Dec 27, 2025
License: GPL-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
¶
func Deref[T any](ptr *T, def T) T
Deref dereferences ptr and returns the value it points to if not nil, or else
returns a default value (def).
To returns a pointer to the given value.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.