package
Version:
v0.5.1
Opens a new window with list of versions in this module.
Published: Dec 23, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 13
Opens a new window with list of known importers.
Documentation
¶
Ptr returns a pointer to the value passed in.
func ValOrZero[T any](t *T) T
ValOrZero returns the value of the pointer passed in or the zero value of the
type if the pointer is nil.
Zero returns the zero value of the type passed in.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.