package
Version:
v0.24.0
Opens a new window with list of versions in this module.
Published: Mar 6, 2021
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package reflect extends the standard reflect package.
func DoEqual(x, y interface{}) (err error)
DoEqual is a naive interfaces comparison that check and use Equaler
interface and return an error if its not match.
func IsEqual(x, y interface{}) bool
IsEqual is a naive interfaces comparison that check and use Equaler
interface.
func IsNil(v interface{}) bool
IsNil will return true if v's type is chan, func, interface, map, pointer,
or slice and its value is `nil`; otherwise it will return false.
type Equaler interface {
IsEqual(v interface{}) bool
}
Equaler is an interface that when implemented by a type, it will be used to
compare the value in Assert.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.