Skip to content

agusmunioz/shutdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shutdown

A Go module for executing a behaviour when application is shutdown by an external signal.

package main

import (
     "fmt"
     "github.com/agusmunioz/shutdown"
)

func main() {

    shutdownHook := func() {
        fmt.Println("Graceful shutdown")
    }
 
    shutdown.OnShutdown(shutdownHook)
 	
}

About

Go module for executing a behaviour when application is shutdown by an external signal

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages