pointer

package
v0.2.45 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func To

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

To is a quick&easy helper function to generate a pointer to a static value.

This is required in some cases where optional values are modelled using pointers to primitive types (for example, when an "optional boolean" is modelled as `*bool`

Types

This section is empty.

Jump to

Keyboard shortcuts

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