check

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty(val string, statusCode int, err string)

IsEmpty 当val为empty时,抛出异常

func IsFalse

func IsFalse(val bool, statusCode int, err string)

IsFalse 当val为false时,抛出异常

func IsTrue

func IsTrue(val bool, statusCode int, err string)

IsTrue 当val为true时,抛出异常

Types

type ICheck

type ICheck interface {
	// Check 自定义检查
	Check()
}

ICheck 当json反序化到dto时,将调用ICheck接口

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL