package
Version:
v0.0.0-...-fdc0f55
Opens a new window with list of versions in this module.
Published: Apr 23, 2024
License: MIT
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
¶
Ptr returns a pointer to the value v.
func ValOrZero[T any](v *T) T
ValOrZero returns the value of v if it's not nil, and a zero value otherwise.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.