pointer

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Overview

Package pointer defines commonly used pointer functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deref

func Deref[T any](in *T) T

Deref returns the resolved value of the pointer. If the pointer is nil, it returns the zero value.

func To

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

To returns a pointer to the given input.

Types

This section is empty.

Jump to

Keyboard shortcuts

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