Registry / utility / tebeka-atexit

tebeka-atexit

JSON →
library0.3.0gogounverified

Register exit handlers that run when the program exits, with replacements for log.Fatal functions.

go get github.com/tebeka/atexit
INSTALL
IMPORT
SIG · TEBEKA-ATEXIT
T
tebeka-atexit
utilitygov0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

atexit
github.com/tebeka/atexit

Register an exit handler and exit via atexit.

package main import ( "fmt" "github.com/tebeka/atexit" ) func main() { atexit.Register(func() { fmt.Println("Goodbye!") }) atexit.Exit(0) }
Debug
Known issues
gotchaMust call atexit.Exit instead of os.Exit for handlers to run
fix
Replace os.Exit calls with atexit.Exit
affects: all
Upgrade
Version history
0.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
tebeka-atexit — go get tebeka-atexit · libregistry