ptr

package
v0.0.0-...-43f947b Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package ptr provides helper functions for working with pointers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deref

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

Deref returns the value of the pointer passed in, or the zero value of the type if the pointer is nil.

func Ptr

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

Ptr returns a pointer to the value passed in.

Types

This section is empty.

Jump to

Keyboard shortcuts

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