The highest tagged major version is
v2.
package
Version:
v1.13.2
Opens a new window with list of versions in this module.
Published: Jul 15, 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 functions for checking 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 false.
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.