utils

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultIfZero added in v0.20.0

func DefaultIfZero[T comparable](value, fallback T) T

DefaultIfZero returns fallback when value is the zero value.

func IsZeroValue added in v0.22.0

func IsZeroValue(v any) bool

IsZeroValue returns true if the value is the zero value.

func ToPtr added in v0.22.0

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

ToPtr returns a pointer to the provided value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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