safego

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GOWithLogger

func GOWithLogger(log logger.ILogger, f func())

GOWithLogger run f with RecoverWithLogger

func GOWithPanic

func GOWithPanic(panicFunc func(any), f func())

GOWithPanic run f with RecoverFunc

func Go

func Go(f func())

Go run f with Recover

func Recover

func Recover()

Recover panic of default logger

func RecoverFunc

func RecoverFunc(panicHandler func(e interface{}))

RecoverFunc panic of panicHandler

func RecoverWithLogger

func RecoverWithLogger(log logger.ILogger)

RecoverWithLogger panic of log

Types

This section is empty.

Jump to

Keyboard shortcuts

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