Skip to content
/ goCalendar Public

๐Ÿ“… goCalendar is simply golang library for generating iCalendar format

License

Notifications You must be signed in to change notification settings

nxm/goCalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“… goCalendar - Open Source iCalendar Library

goCalendar is simply golang library for generating iCalendar format

You can find more information in specification

Usage

	//creating new Calendar
	cal := createCalendar()

	//creating new Event
	start := time.Now().Add(time.Hour) //start of event
	end := start.Add(time.Minute*45) //end of event

	simpleEvent := createEvent(start, end)
	simpleEvent.setTitle("Music lesson") //title
	simpleEvent.setDescription("Learning musical notes") //description
	simpleEvent.setLocation("School") //location

	//adding Event to Calendar
	cal.addEvent(simpleEvent)

	//saving Calendar with Events to file
	err := cal.save("example.ics")

Written under MIT License

About

๐Ÿ“… goCalendar is simply golang library for generating iCalendar format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages