common

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

DefSysSigs 默认监听的系统信号

Functions

func CatchPanic

func CatchPanic(fs ...func(interface{}))

CatchPanic 捕获异常处理

func CatchSysSig added in v1.0.5

func CatchSysSig(f func(os.Signal), signs ...os.Signal)

CatchSysSig 捕获系统信号 捕获后处理

func CatchSysSigExit added in v1.0.5

func CatchSysSigExit(f func(os.Signal), signs ...os.Signal)

func ErrPanic

func ErrPanic(err error, ignoreErrs ...error)

ErrPanic 判断是否error(完全匹配或模糊匹配),否则panic

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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