
The highest tagged major version is
v2.
package
Version:
v1.12.1
Opens a new window with list of versions in this module.
Published: Mar 30, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package empty provides checks for empty variables.
func IsEmpty(value interface{}) bool
IsEmpty checks whether given <value> empty.
It returns true if <value> is in: 0, nil, false, "", len(slice/map/chan) == 0.
Or else it returns true.
func IsNil(value interface{}) bool
IsNil checks whether given <value> is nil.
Note that it might use reflect feature which affects performance a little bit.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.