nazareflect

package
v0.30.48 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 2 Imported by: 0

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

func IsNil

func IsNil(actual 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