ptr

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 0 Imported by: 16

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