pointers

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package pointers provides generic pointer conversion helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromPointer

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

FromPointer returns the value pointed to by value, or the zero value of T if value is nil.

func ToPointer

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

ToPointer returns a pointer to the provided value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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