Skip to content

karlseguin/signals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

os signal wrapper

import (
  "gopkg.in/karlseguin/signals.v1"
)

func main() {
  go signals.Handle(signals.SIGUSR2, reload)
  RunServer()
}

func reload() bool {
  //do reload
  return true
}

Returning true causes the code to continue listening for further signals.

About

a thin wrapper around go's os/signals package

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages