From 6574cc1111e14624429386e04bf09dcbfcb1a6da Mon Sep 17 00:00:00 2001 From: Gregory Wells Date: Mon, 27 Jul 2026 22:06:16 -0700 Subject: [PATCH] get the URL for pasring the dav data --- main/dav_server.go | 2 ++ main/main.go | 1 + 2 files changed, 3 insertions(+) diff --git a/main/dav_server.go b/main/dav_server.go index 824cd26..9013deb 100644 --- a/main/dav_server.go +++ b/main/dav_server.go @@ -28,6 +28,7 @@ func init_dav_client() { type Calandar struct { DisplayName string + Link string } type SimpleCalDavData struct { @@ -74,6 +75,7 @@ func get_caldav_data(username string, password string) SimpleCalDavData { var new_cal Calandar = Calandar{ DisplayName: davResp.Responses[i].PropStat[0].Prop.DisplayName, + Link: serverConfig.URL + davResp.Responses[i].Href, } calandars = append(calandars, new_cal) diff --git a/main/main.go b/main/main.go index aa79f23..5b884fd 100644 --- a/main/main.go +++ b/main/main.go @@ -13,5 +13,6 @@ func main() { fmt.Printf("Calandar Count: %d\n", len(calDavData.Calandars)) for i := range len(calDavData.Calandars) { fmt.Printf("Cal %d is named %s\n", i, calDavData.Calandars[i].DisplayName) + fmt.Printf("\tLink to cal: %s\n", calDavData.Calandars[i].Link) } }