Mercurial > code > home > repos > gcalendarwatch
diff calsync/main.go @ 65:329144c7e711
reformat
author | drewp@bigasterisk.com |
---|---|
date | Fri, 06 Sep 2024 17:25:40 -0700 |
parents | 8aee4f5c4bdd |
children | e8164bd2f9a1 |
line wrap: on
line diff
--- a/calsync/main.go Fri Sep 06 16:46:21 2024 -0700 +++ b/calsync/main.go Fri Sep 06 17:25:40 2024 -0700 @@ -66,8 +66,8 @@ r.HandleFunc("/", homePage) r.HandleFunc("/gcalendarwatch", homePage) r.HandleFunc("/gcalendarwatch/notifications", notifications.NotificationHandler).Methods("POST") - - addr:=":8080" + + addr := ":8080" log.Println("serving /gcalendarwatch/notifications on", addr) log.Fatal(http.ListenAndServe(addr, nil)) } @@ -77,9 +77,9 @@ log.Println(` ================================================== calsync - ----------------------------------------------`) + ----------------------------------------------`) } func homePage(w http.ResponseWriter, r *http.Request) { - w.Write([]byte("calsync service for calendar updates. See https://console.cloud.google.com/apis/api/calendar-json.googleapis.com/metrics?project=bigasterisk-910")) - } + w.Write([]byte("calsync service for calendar updates. See https://console.cloud.google.com/apis/api/calendar-json.googleapis.com/metrics?project=bigasterisk-910")) +}