pointer

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func To added in v0.3.0

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

To returns a pointer to the given value.

func ValueOrEmpty

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

ValueOrEmpty returns the value pointed to by ptr, or the zero value if ptr is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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