reflectutil

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty(v reflect.Value) bool

IsEmpty reports whether v should be treated as "empty" for omitempty semantics.

This is similar to encoding/json's emptiness rules but also treats structs (including nested structs) as empty when all fields are empty, and treats time.Time as empty when IsZero() is true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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