Skip to content

Commit

Permalink
Fix documentation of Context.Args (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
sevlyar committed Mar 5, 2018
1 parent 9eb5ddf commit 97491df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions daemon_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 4 additions & 3 deletions examples/cmd/gd-simple/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 97491df

Please sign in to comment.