package
Version:
v1.2.0-rc.1
Opens a new window with list of versions in this module.
Published: Mar 10, 2024
License: Apache-2.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.
README
¶
ptr
import "code.byted.org/epscp/common/ptr"
Package ptr ...
Index
func Of
func Of[T any](v T) *T
Of returns pointer to value.
func To
func To[T any](v *T) T
To returns the value of the pointer passed in or the default value if the pointer is nil.
func ToDef
func ToDef[T any](v *T, def T) T
ToDef returns the value of the int pointer passed in or default value if the pointer is nil.
Generated by gomarkdoc
Documentation
¶
Of returns pointer to value.
To returns the value of the pointer passed in or the default value if the pointer is nil.
func ToDef[T any](v *T, def T) T
ToDef returns the value of the int pointer passed in or default value if the pointer is nil.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.