Categorygithub.com/pulcy/go-terminate
repositorypackage
0.0.0-20160630075856-d486fe7ee814
Repository: https://github.com/pulcy/go-terminate.git
Documentation: pkg.go.dev

# README

go-terminate

GoDoc

Utility class used to terminate go services in a controlled manor.

Usage

import (
    "log"

    "github.com/pulcy/go-terminate"
    )

func main() {
    t := terminate.NewTerminator(log.Printf, nil)
    go t.ListenSignals()
    ...
}