deref

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: CC0-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Of

func Of[T any](p *T) T

Of is an alias to OrDefault.

func OrDefault

func OrDefault[T any](ptr *T) T

OrDefault is a 'dereference or default': it will dereference the pointer passed, or return default value for type T if p == nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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