Documentation ¶
Index ¶
- func Bytes2Str(arr []byte) string
- func Equal(expected, actual interface{}, handler func(e, a interface{}))
- func EqualWithTip(expected, actual interface{}, errorMsg string)
- func IfElse(condition bool, ifVal interface{}, elVal interface{}) interface{}
- func IsNil(i interface{}) bool
- func IsNotNil(i interface{}) bool
- func Predicate(predicate func() bool, errorMsg string)
- func TrimBytes2Str(arr []byte) string
- func Validate(expected, actual interface{}, ...)
- type ValidateError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualWithTip ¶
func EqualWithTip(expected, actual interface{}, errorMsg string)
Types ¶
type ValidateError ¶
type ValidateError struct {
// contains filtered or unexported fields
}
func (ValidateError) Error ¶
func (v ValidateError) Error() string
Click to show internal directories.
Click to hide internal directories.