Documentation ¶
Index ¶
- func Get(path string, header map[string]string) (string, bool)
- func GoWithRecover(f func())
- func GzipCompress(source []byte) []byte
- func GzipUncompress(source []byte) []byte
- func InDeferRecover()
- func LogRecoverError(err any)
- func Post(path, jsonBody string, header map[string]string) (string, bool, int)
- func RandInt32(max int32) int32
- func RandInt64(max int64) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoWithRecover ¶
func GoWithRecover(f func())
func GzipCompress ¶
func GzipUncompress ¶
func LogRecoverError ¶
func LogRecoverError(err any)
用法如下:
defer func() { if err := recover(); err != nil { util.LogRecoverError(err) } }()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.