ptr

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Safe

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

Safe dereferences safely a pointer - if the pointer is nil => returns the zero value of the type of the pointer if nil - if the pointer is not nil => returns the dereferenced pointer

Types

This section is empty.

Jump to

Keyboard shortcuts

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