types

package
v0.3.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNil

func IsNil(obj any) bool

判断对象是否为 nil。 与直接使用 `obj == nil` 不同,该函数会正确判断接口类型对象的真实值是否为空。

入参:

  • value:待判断的对象。

出参:

  • 如果对象值为 nil,则返回 true;否则返回 false。

Types

This section is empty.

Jump to

Keyboard shortcuts

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