Registry / utility / syossan27-tebata

syossan27-tebata

JSON →
library0.0.1gogounverified

Tebata provides a way to handle OS signals gracefully in Go applications.

go get github.com/syossan27/tebata
INSTALL
IMPORT
SIG · SYOSSAN27-TEBATA
S
syossan27-tebata
utilitygov0.0.1
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.

tebata
github.com/syossan27/tebata

Register a cleanup function for SIGINT.

package main import ( "fmt" "os" "os/signal" "github.com/syossan27/tebata" ) func main() { t := tebata.New() t.Reserve(func() { fmt.Println("cleanup") }, os.Interrupt) signal.Notify(t.Ch, os.Interrupt) <-t.Ch }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
syossan27-tebata — go get syossan27-tebata · libregistry