guutil

package
v0.0.44 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoWithRecover

func GoWithRecover(f func())

func GzipCompress

func GzipCompress(source []byte) []byte

func GzipUncompress

func GzipUncompress(source []byte) []byte

func InDeferRecover

func InDeferRecover()

函数第一行

defer InDeferRecover()

主题代码

func LogCallers

func LogCallers()

func LogRecoverError

func LogRecoverError(err any)

用法如下:

defer func() {
	if err := recover(); err != nil {
		util.LogRecoverError(err)
	}
}()

func RandInt32

func RandInt32(max int32) int32

Types

This section is empty.

Jump to

Keyboard shortcuts

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