go app gracefully shutdown utils. This project is split from k8s, I want to do some progress here.
var stopCh = gracefully.SetupSignalHandler()
go func() {
for {
log.Println("alive...")
time.Sleep(1 * time.Second)
}
}()
<-stopCh
log.Println("gracefully shutdown")
go get -u github.com/exfly/gracefully
This project is forked form k8s.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- exfly - Initial work - exfly
This project is licensed under the Apache v2 License - see the LICENSE.md file for details