package
Version:
v1.5.3
Opens a new window with list of versions in this module.
Published: Feb 10, 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
¶
func Deref[T any](p *T, def T) T
Deref dereferences the pointer; if nil, returns def.
OrDefault returns def when v equals the type's zero value; otherwise returns v.
Note: works only for comparable types.
Ptr returns a pointer to the given value.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.