A daemon library for Go.
$ go get "github.com/yoppi/daemon"
Call daemon#Daemonize()
, then starting process on background.
import (
"github.com/yoppi/daemon"
)
func main() {
daemon.Daemonize("app.log")
// starting background process
for {
fmt.Println("Background ....")
}
}