arran4 / golang-ical

A ICS / ICal parser and serialiser for Golang.
Apache License 2.0
279 stars 72 forks source link

Remove event from calendar #57

Closed antipopp closed 7 months ago

antipopp commented 2 years ago

Is there a way to parse a calendar and then remove some events? I don't mean to cancel them, I want them out of the .ics file.

antipopp commented 2 years ago

I think I've found a workaround. I'm parsing the "old" calenda, then I add the necessary events to a new calendar and return that. But I really know nothing about .ics standards and I have no idea if there is something wrong with this approach.

Any tip regarding this?

arran4 commented 2 years ago

Hey @antipopp Yes it is an oversight. I will see what I can get done. I have a lot on my plate but in the coming weekends.

ManoloTonto1 commented 12 months ago

hello has this been added yet? if not I can go ahead an make a pr with an implementation to be able to remove events.

arran4 commented 12 months ago

I would be happy to receive a PR. My contract will be ending soon so I will have time to look in more detail in this.