commit e4eef5e3a00968b5c3077d3fda514a6fbcb43e49
parent e8cd095d422f2902e2fc9c71c8dd6123ac721916
Author: Vetle Haflan <vetle@haflan.dev>
Date: Tue, 22 Nov 2022 21:20:56 +0100
gimme.go: log on server startup
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/gimme.go b/gimme.go
@@ -63,6 +63,7 @@ func handleUpload(w http.ResponseWriter, r *http.Request) {
func main() {
http.HandleFunc("/", handleSite)
http.HandleFunc("/upload", handleUpload)
+ fmt.Println("Starting server at port 8888")
if err := http.ListenAndServe(":8888", nil); err != nil {
fmt.Println(err)
os.Exit(1)