get calandars and there names

This commit is contained in:
2026-07-27 22:01:10 -07:00
parent cdb79f75b5
commit 2e5814e46d
3 changed files with 36 additions and 4 deletions
+8 -1
View File
@@ -6,5 +6,12 @@ func main() {
read_config()
init_dav_client()
calDavData := get_caldav_data(serverConfig.Username, serverConfig.Password)
fmt.Printf("Users display name: {%s}\n", calDavData.DisplayName)
fmt.Println()
fmt.Printf("Users display name: %s\n", calDavData.DisplayName)
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)
}
}