ptr

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone added in v0.1.2

func Clone[T any](p *T) *T

Clone returns a shallow copy of the value behind p. Nil in, nil out.

func Deref

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

Deref is the safe equivalent of * operator. It returns values under the pointer or zero value in case of nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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