More verbose startup
This commit is contained in:
parent
0bd0f90d4a
commit
465b751279
@ -24,6 +24,8 @@ func respondWithIp(writer http.ResponseWriter, request *http.Request) {
|
||||
}
|
||||
|
||||
func main() {
|
||||
addr := ":8080"
|
||||
http.HandleFunc("/", respondWithIp)
|
||||
http.ListenAndServe(":8080", nil)
|
||||
fmt.Println("Starting server on", addr)
|
||||
http.ListenAndServe(addr, nil)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user