pointer

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func To

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

To returns the pointer to the value

func ToNonZero added in v0.1.1

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

ToNonZero returns the pointer to the value if the value is not zero

Types

This section is empty.

Jump to

Keyboard shortcuts

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