package
Version:
v0.0.32
Opens a new window with list of versions in this module.
Published: Dec 12, 2022
License: CC0-1.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
¶
Of is an alias to OrDefault.
func OrDefault[T any](ptr *T) T
OrDefault is a 'dereference or default':
it will dereference the pointer passed, or return default value for type T if p == nil.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.