ptr

package
v0.0.0-...-88714d8 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

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

Clone create a new pointer with a different memory address than the original, effectively cloning it

func From

func From[T any](v *T, fallback T) T

From makes a value from a pointer

func IsNil

func IsNil(i interface{}) bool

IsNil asserts whether the underlying type is nil, which `interface{} == nil` does not

func To

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

To makes a pointer to a value

Types

This section is empty.

Jump to

Keyboard shortcuts

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