Sprig Reflection

Sprig Reflection

deepEqual

func deepEqual(arg1 interface{}, arg2 interface{}) bool
returns true if two values are deeply equal.

kindIs

func kindIs(arg1 string, arg2 interface{}) bool
Let you verify that a value is a particular kind.

Aliases

  • kindis

kindOf

func kindOf(arg1 interface{}) string
Returns the kind of an object.

Aliases

  • kindof

typeIs

func typeIs(arg1 string, arg2 interface{}) bool
Like `kindIs`, but for types.

Aliases

  • typeis

typeIsLike

func typeIsLike(arg1 string, arg2 interface{}) bool
Works as `typeIs`, except that it also dereferences pointers.

Aliases

  • typeisLike

typeOf

func typeOf(arg1 interface{}) string
Returns the underlying type of a value.

Aliases

  • typeof