Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal(expected, actual interface{}) bool
TODO chef: 考虑是否将EqualInteger放入Equal中,但是需考虑,会给Equal带来额外的性能开销
func EqualInteger ¶
func EqualInteger(a, b interface{}) bool
用于判断不同类型的整型的值是否相等,比如int8(1)和int32(1)做比较,结果为true 注意,如果a或b不是整型,则直接返回false
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.