daemon example ~/GolandProjects » go get -u github.com/granty1/daemon func main() { // start daemon process // before other flag parse! daemon.Run() }