ptr

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: BSD-3-Clause-LBNL Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Of

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

Of returns a pointer to the given value.

This is a convenience function to create a pointer from a value.

Example:

p := ptr.Of(5)

will return a pointer to the value 5.

func ValOf added in v0.8.0

func ValOf[T any](value *T) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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