common

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy added in v0.3.5

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

func CopySlice added in v0.3.5

func CopySlice[T any](v ...*T) []*T

func Ptr

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

Ptr returns the pointer to the value passed in.

func PtrSlice added in v0.3.5

func PtrSlice[T any](v ...T) *[]*T

PtrSlice returns a pointer to a slice of pointers to all of the provided values.

func Val

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

Val returns the value pointed to by the pointer passed in. If the pointer is nil, it returns the zero value of the type.

func ValSlice added in v0.3.5

func ValSlice[T any](v ...*T) []T

Types

This section is empty.

Jump to

Keyboard shortcuts

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