Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEmpty ¶
func IsEmpty(any interface{}) bool
IsEmpty returns true is the value is empty, false otherwise.
func IsPresent ¶
func IsPresent(any interface{}) bool
IsPresent returns true if the value is not empty, false otherwise.
func RegisterHandler ¶
RegisterHandler registers a particular type to a function that determines whether a value of that type is empty. Useful for types that are in other libraries. However please consider using the EmptyValue interface wherever possible.
func TimeIsEmpty ¶
func TimeIsEmpty(any interface{}) bool
TimeIsEmpty determines whether time.Time object is empty
Types ¶
Click to show internal directories.
Click to hide internal directories.