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