Migrate to go.mod
This commit is contained in:
parent
0fc1a7f846
commit
e6fe1b3e0c
|
@ -1,3 +1,5 @@
|
|||
# terminator
|
||||
terminator
|
||||
==========
|
||||
|
||||
The terminator module provides a clean way to react to Ctrl-C, SIGTERM, etc.
|
||||
|
||||
The go way of handling ctrl-c, sigterm, etc.
|
|
@ -1,4 +1,11 @@
|
|||
package terminator /* import "udico.de/uditaren/terminator" */
|
||||
// Package terminator provides a simple way to await process termination.
|
||||
//
|
||||
// Just wait until the Terminate channel closes:
|
||||
//
|
||||
// <-terminator.Terminate
|
||||
//
|
||||
// it will fall through, once your process receives Ctrl-C, SIGINT, SIGTERM or SIGKILL signal.
|
||||
package terminator
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
@ -7,7 +14,9 @@ import (
|
|||
)
|
||||
|
||||
// enable to react to
|
||||
//
|
||||
// <-terminator.Terminate
|
||||
//
|
||||
// nicely
|
||||
var Terminate = make(chan struct{})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user