get calandars and there names
This commit is contained in:
+8
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user