isany

package
v1.2.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllNull

func AllNull(anyItems ...interface{}) bool

func Conclusive added in v1.1.0

func Conclusive(left, right interface{}) (isEqual, isConclusive bool)

func DeepEqual added in v1.1.0

func DeepEqual(
	left, right interface{},
) (isEqual 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 JsonEqual added in v1.1.0

func JsonEqual(
	left, right interface{},
) 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 Pointer added in v1.1.0

func Pointer(anyItem interface{}) (isPtr 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 ReflectValueNull(rv reflect.Value) bool

func StringEqual added in v1.1.0

func StringEqual(
	left, right interface{},
) bool

func TypeSame added in v1.1.0

func TypeSame(
	left, right interface{},
) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL