Documentation ¶
Index ¶
- Variables
- func MD5Sum(s string) string
- func PanicRecover()
- func RespEmpty(c *gin.Context)
- func RespError(c *gin.Context, err error)
- func RespErrorCode(c *gin.Context, code int, err error)
- func RespErrorParams(c *gin.Context)
- func SHA1Sum(s string) string
- func SHA256Sum(s string) string
- func SHA512Sum(s string) string
- func ShutdownSignals() []os.Signal
- type ApiData
- type EmptyData
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ParamsErrorMsg = "参数错误"
)
Functions ¶
func PanicRecover ¶
func PanicRecover()
func RespErrorParams ¶
func ShutdownSignals ¶
ShutdownSignals returns all the signals that are being watched for to shut down services.
Types ¶
Click to show internal directories.
Click to hide internal directories.