More verbose startup

This commit is contained in:
Lucas Schumacher 2024-10-06 20:37:40 -04:00
parent 0bd0f90d4a
commit 465b751279

View File

@ -24,6 +24,8 @@ func respondWithIp(writer http.ResponseWriter, request *http.Request) {
} }
func main() { func main() {
addr := ":8080"
http.HandleFunc("/", respondWithIp) http.HandleFunc("/", respondWithIp)
http.ListenAndServe(":8080", nil) fmt.Println("Starting server on", addr)
http.ListenAndServe(addr, nil)
} }