golang-ical icon indicating copy to clipboard operation
golang-ical copied to clipboard

please show more examples on usage

Open emdete opened this issue 3 years ago • 5 comments

Please add some code examples on how to use the structure after parsing to retrieve the usual information. i am not an ical expert and couldnt find out how to get the data from a parsed ical (my start time is zero for all values ;) )

emdete avatar Feb 01 '22 21:02 emdete

I've been thinking the same thing. I originally wrote this internally for a booking and planning system it was bare minimum and very much dependent on knowledge. I was meaning to add higher level utility functions too for your use case.

arran4 avatar Feb 01 '22 23:02 arran4

just some sample code (more tests would be a help too) would do, i see alot of editing ical after reading/parsing but no simple parse, get summary and description, get start and endtime, get organizer and attendee, ... that would be sufficient for me.

i admit i am not an ical, ics, vobject, .. expert, in fact i dont like that format ;) and maybe its just some lazyness here that i ask for code samples for cut&paste programming? ;)

emdete avatar Feb 02 '22 07:02 emdete

I think part of the problem is that this is such a low level library. I always intended to produce a "util" project which uses this. However circumstances haven't aligned with that.

Eitherway I will keep this open for when it fits.

arran4 avatar Feb 09 '22 02:02 arran4

can you give some sample code how to extract the most important fields?

emdete avatar Feb 21 '22 15:02 emdete

Hi @emdete , I will get around to fulfilling this ticket. However I am working on something else right now. I don't have any examples, so I would have to make them up from scratch. (I am not an active user of the library.)

The library is just a basic parsing library for https://www.ietf.org/rfc/rfc2445.txt so in the mean time some examples there might help. I do plan a major documentation update to the project.

In the mean time is there anything else I could do to help you get around what is currently blocking you on your project?

arran4 avatar Feb 21 '22 21:02 arran4