package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Apr 5, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func IsPointer[T any](value T) bool
IsPointer checks if the value is a pointer
func New[T any](value T) *T
New returns a new pointer to the value
func Safe[T any](value *T) T
Safe returns the value if it is not nil, otherwise it returns the zero value
Source Files
¶
Click to show internal directories.
Click to hide internal directories.