ptr

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MPL-2.0 Imports: 0 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Or

func Or[T any](p *T, or T) T

Or will dereference a pointer and return the given value if it's nil.

func Ptr

func Ptr[T any](val T) *T

Ptr creates a ptr from a value to use it inline.

Types

This section is empty.

Jump to

Keyboard shortcuts

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