package
Version:
v0.0.36
Opens a new window with list of versions in this module.
Published: Dec 13, 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.