Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

anders/ics

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ics

This is a simple module to generate iCalendar (ics) files. The API is subject to change. Currently supports VCALENDAR and VEVENT.

Example program

import (
    "github.com/anders/ics"
)

func main() {
    cal := ics.NewCalendar()
    cal.Add(ics.Event{
        "DTSTART": time.Now(),
        "DTEND": time.Now().Add(45*time.Minute),
        "SUMMARY": "Hello World",
    })
    cal.Encode(os.Stdout)
}

output:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//github.com/anders/ics
CALSCAL:GREGORIAN
BEGIN:VEVENT
DTEND:20200127T191212Z
DTSTART:20200127T182712Z
SUMMARY:Hello World
END:VEVENT
END:VCALENDAR

About

very simple iCal encoder for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.