Simple tool to import ICS files generated by google maps into a caldav environment from the command line.
Google exports an ics with all data in 1 file per calendar, which caldav (at least Baikal / sabre/dav) doesn't like if you push it with curl.
Importing my calendar items using Evolution used to cause an error and quit and I didn't know why, I still don't but at least all my events have been migrated using this script.
Easiest way to run would be go run . -s <source ics> -t <target caldav url>
If you wish to authenticate, append -u <username> -p <password>
You can also do -d 1 to enable auth digest.
eg: go run . -s mycalendar.ics -t https://my.caldav.server.com/dav.php/calendars/supermario/default -u supermario -p wahoooo -d 1
This will read the file mycalendar.ics and sync it to the calendar on my.caldav.server.com with the user supermario and
password wahoooo using auth digest instead of basic auth.