empty

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package empty 提供检查变量是否为空/nil的函数

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty(value any, traceSource ...bool) bool

func IsEmptyOrZero added in v0.0.7

func IsEmptyOrZero(value any, traceSource ...bool) bool

IsEmptyOrZero 检查给定值是否为空或零值

func IsNil

func IsNil(value any, _ ...bool) bool

IsNil 检查给定值是否为nil

func IsZero added in v0.0.7

func IsZero(value any, _ ...bool) bool

IsZero 检查给定值是否为零值

Types

This section is empty.

Jump to

Keyboard shortcuts

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