reflectutils

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty[T any](in T) bool

IsEmpty returns true if the input value is effectively empty for its type.

func UseNonZeroOrDefault

func UseNonZeroOrDefault[T any](in T, def T) T

UseNonZeroOrDefault returns the input if not effectively zero, otherwise returns the default.

Types

This section is empty.

Jump to

Keyboard shortcuts

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