pointer

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPointer

func IsPointer[T any](value T) bool

IsPointer checks if the value is a pointer

func New

func New[T any](value T) *T

New returns a new pointer to the value

func Safe

func Safe[T any](value *T) T

Safe returns the value if it is not nil, otherwise it returns the zero value

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL