diff --git a/daemon_unix.go b/daemon_unix.go index df8eb2e..2ac3c65 100644 --- a/daemon_unix.go +++ b/daemon_unix.go @@ -36,8 +36,7 @@ type Context struct { // If it is nil, the result of os.Environ will be used. Env []string // If Args is non-nil, it gives the command-line args for the - // daemon-process. If it is nil, the result of os.Args will be used - // (without program name). + // daemon-process. If it is nil, the result of os.Args will be used. Args []string // Credential holds user and group identities to be assumed by a daemon-process. diff --git a/examples/cmd/gd-simple/simple.go b/examples/cmd/gd-simple/simple.go index f0385f2..49f43f6 100644 --- a/examples/cmd/gd-simple/simple.go +++ b/examples/cmd/gd-simple/simple.go @@ -2,10 +2,11 @@ package main import ( "fmt" - "github.com/sevlyar/go-daemon" "html" "log" "net/http" + + "github.com/sevlyar/go-daemon" ) // To terminate the daemon use: @@ -34,10 +35,10 @@ func main() { log.Print("- - - - - - - - - - - - - - -") log.Print("daemon started") - serveHttp() + serveHTTP() } -func serveHttp() { +func serveHTTP() { http.HandleFunc("/", httpHandler) http.ListenAndServe("127.0.0.1:8080", nil) }