Skip to content

Commit 19299f6

Browse files
rscgopherbot
authored andcommitted
helloserver: implement -g flag
It was documented and parsed but not used. Change-Id: I4c19429b3761819b3bae70f06fc2b55431c0f88c Reviewed-on: https://go-review.googlesource.com/c/example/+/514578 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Russ Cox <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Russ Cox <[email protected]>
1 parent 0c9b5c5 commit 19299f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helloserver/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ func greet(w http.ResponseWriter, r *http.Request) {
7171
}
7272

7373
fmt.Fprintf(w, "<!DOCTYPE html>\n")
74-
fmt.Fprintf(w, "Hello, %s!\n", html.EscapeString(name))
74+
fmt.Fprintf(w, "%s, %s!\n", *greeting, html.EscapeString(name))
7575
}

0 commit comments

Comments
 (0)