package
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: Jun 17, 2024
License: AGPL-3.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 SafeDereference[T any](ptr *T) T
SafeDereference return the value ptr points to. If ptr is nil, it returns the default value if the type instead.
func ToPtr[T any](val T) *T
Source Files
¶
Click to show internal directories.
Click to hide internal directories.