lang

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 0 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ptr

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

Ptr returns a pointer to the value passed in.

func ValOrZero added in v0.5.0

func ValOrZero[T any](t *T) T

ValOrZero returns the value of the pointer passed in or the zero value of the type if the pointer is nil.

func Zero added in v0.5.0

func Zero[T any]() T

Zero returns the zero value of the type passed in.

Types

This section is empty.

Jump to

Keyboard shortcuts

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