Fixed the container name (#8)

* Fixed the container name
* whoamI -> whoami
This commit is contained in:
Gérald Croës
2018-08-06 17:05:34 +02:00
committed by Emile Vauge
parent c039b48727
commit 585d48ff07
5 changed files with 9 additions and 9 deletions

4
app.go
View File

@ -34,7 +34,7 @@ func main() {
flag.Parse()
http.HandleFunc("/echo", echoHandler)
http.HandleFunc("/bench", benchHandler)
http.HandleFunc("/", whoamI)
http.HandleFunc("/", whoami)
http.HandleFunc("/api", api)
http.HandleFunc("/health", healthHandler)
fmt.Println("Starting up on port " + port)
@ -75,7 +75,7 @@ func echoHandler(w http.ResponseWriter, r *http.Request) {
}
}
func whoamI(w http.ResponseWriter, req *http.Request) {
func whoami(w http.ResponseWriter, req *http.Request) {
u, _ := url.Parse(req.URL.String())
queryParams := u.Query()
wait := queryParams.Get("wait")