From 465b751279d1ef8a5d1b1e856c611ed4dfbe5116 Mon Sep 17 00:00:00 2001 From: Lucas Schumacher Date: Sun, 6 Oct 2024 20:37:40 -0400 Subject: [PATCH] More verbose startup --- whatsMyIpServer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/whatsMyIpServer.go b/whatsMyIpServer.go index 7daba43..1288bc1 100644 --- a/whatsMyIpServer.go +++ b/whatsMyIpServer.go @@ -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) }