Skip to content

Commit

Permalink
doc(go): testing
Browse files Browse the repository at this point in the history
  • Loading branch information
opera443399 committed Sep 25, 2017
1 parent e04fd16 commit 0e5c525
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Go/src/abc.com/demo/whoami/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* go install app.go
* CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o whoamI
*
* pc@2017/8/16
* pc@2017/9/25
*
*/

Expand All @@ -28,7 +28,7 @@ import (
var port string

func init() {
flag.StringVar(&port, "port", "80", "listen the port as given.")
flag.StringVar(&port, "port", "80", "listen to the given port.")
}

func main() {
Expand Down Expand Up @@ -86,7 +86,7 @@ func index(w http.ResponseWriter, req *http.Request) {
req.Write(w)

fmt.Fprintln(w, "\n---- Active Endpoint ----\n")
fmt.Fprintln(w, "[howto] version: 0.7 \n",
fmt.Fprintln(w, "[howto] version: 0.9 \n",
" curl 127.0.0.1/ \n",
" curl 127.0.0.1/?wait=2s \n",
" curl 127.0.0.1/test \n",
Expand Down

0 comments on commit 0e5c525

Please sign in to comment.