Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IfNil ¶
func IfNil(checker NilInterfaceChecker) bool
IfNil tests if the provided interface pointer or underlying object is nil
func IfNilReflect ¶
func IfNilReflect(i interface{}) bool
IfNilReflect tests if the provided interface pointer or underlying pointer receiver is nil
Types ¶
type NilInterfaceChecker ¶
type NilInterfaceChecker interface {
IsInterfaceNil() bool
}
NilInterfaceChecker checks if an interface's underlying object is nil
Click to show internal directories.
Click to hide internal directories.