Documentation
¶
Index ¶
- func AllNull(anyItems ...interface{}) bool
- func Conclusive(left, right interface{}) (isEqual, isConclusive bool)
- func DeepEqual(left, right interface{}) (isEqual bool)
- func DeepEqualAllItems(items ...interface{}) (isAllEqual bool)
- func Defined(item interface{}) bool
- func DefinedAllOf(anyItems ...interface{}) bool
- func DefinedAnyOf(anyItems ...interface{}) bool
- func DefinedBoth(leftAnyItem, rightAnyItem interface{}) (isBothDefined bool)
- func DefinedItems(anyItems ...interface{}) (isAllDefined bool, nonNullItems []interface{})
- func DefinedLeftRight(leftAnyItem, rightAnyItem interface{}) (isLeftDefined, isRightDefined bool)
- func JsonEqual(left, right interface{}) bool
- func NotDeepEqual(left, right interface{}) (isNotEqual bool)
- func NotNull(item interface{}) bool
- func Null(item interface{}) bool
- func NullBoth(leftAnyItem, rightAnyItem interface{}) (isBothNull bool)
- func NullLeftRight(leftAnyItem, rightAnyItem interface{}) (isLeftNull, isRightNull bool)
- func Pointer(anyItem interface{}) (isPtr bool)
- func ReflectNotNull(item interface{}) bool
- func ReflectNull(item interface{}) bool
- func ReflectValueNull(rv reflect.Value) bool
- func StringEqual(left, right interface{}) bool
- func TypeSame(left, right interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Conclusive ¶ added in v1.1.0
func Conclusive(left, right interface{}) (isEqual, isConclusive bool)
func DeepEqualAllItems ¶ added in v1.1.2
func DeepEqualAllItems( items ...interface{}, ) (isAllEqual bool)
func Defined ¶
func Defined(item interface{}) bool
Defined
Returns true for not nil ¶
Reference : https://stackoverflow.com/a/43896204
func DefinedAllOf ¶
func DefinedAllOf(anyItems ...interface{}) bool
func DefinedAnyOf ¶
func DefinedAnyOf(anyItems ...interface{}) bool
func DefinedBoth ¶ added in v0.9.7
func DefinedBoth(leftAnyItem, rightAnyItem interface{}) (isBothDefined bool)
func DefinedItems ¶ added in v1.0.8
func DefinedItems( anyItems ...interface{}, ) (isAllDefined bool, nonNullItems []interface{})
func DefinedLeftRight ¶ added in v0.9.7
func DefinedLeftRight(leftAnyItem, rightAnyItem interface{}) (isLeftDefined, isRightDefined bool)
func NotDeepEqual ¶ added in v1.1.0
func NotDeepEqual( left, right interface{}, ) (isNotEqual bool)
func NotNull ¶
func NotNull(item interface{}) bool
NotNull
Returns true for not nil ¶
Reference : https://stackoverflow.com/a/43896204
func Null ¶
func Null(item interface{}) bool
Null
Returns true for any nil given ¶
Reference : https://stackoverflow.com/a/43896204
func NullBoth ¶ added in v0.9.7
func NullBoth(leftAnyItem, rightAnyItem interface{}) (isBothNull bool)
func NullLeftRight ¶ added in v0.9.7
func NullLeftRight( leftAnyItem, rightAnyItem interface{}, ) ( isLeftNull, isRightNull bool, )
func ReflectNotNull ¶
func ReflectNotNull(item interface{}) bool
ReflectNotNull
Returns true for not nil.
Reference : https://stackoverflow.com/a/43896204
func ReflectNull ¶
func ReflectNull(item interface{}) bool
ReflectNull
Returns true for any nil given ¶
Reference : https://stackoverflow.com/a/43896204
func ReflectValueNull ¶ added in v1.1.0
func StringEqual ¶ added in v1.1.0
func StringEqual( left, right interface{}, ) bool
Types ¶
This section is empty.
Source Files
¶
- AllNull.go
- Conclusive.go
- DeepEqual.go
- DeepEqualAllItems.go
- Defined.go
- DefinedAllOf.go
- DefinedAnyOf.go
- DefinedBoth.go
- DefinedItems.go
- DefinedLeftRight.go
- JsonEqual.go
- NotDeepEqual.go
- NotNull.go
- Null.go
- NullBoth.go
- NullLeftRight.go
- Pointer.go
- ReflectNotNull.go
- ReflectNull.go
- ReflectValueNull.go
- StringEqual.go
- TypeSame.go
Click to show internal directories.
Click to hide internal directories.