helpers

package
v1.0.0-beta.18 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromPtr

func FromPtr[T any](v *T) (zero T)

FromPtr takes an input ptr to a value and returns its value.

In case the ptr is nil, a zero value is returned.

func ToPtr

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

ToPtr takes an input value and returns its associated ptr.

Note that as the input may not be a ptr, a copy may be done.

Types

This section is empty.

Jump to

Keyboard shortcuts

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