structs

package
v2.286.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package structs provides small generic helpers for structs types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty[T comparable](value *T) bool

IsEmpty reports whether value is nil or points to the zero value of T.

func IsNil

func IsNil[T any](value *T) bool

IsNil reports whether value is nil.

func IsZero

func IsZero[T comparable](value T) bool

IsZero reports whether value is the zero value of T.

Types

This section is empty.

Jump to

Keyboard shortcuts

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