Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.13 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.13 KB

go-ics GoDoc Build Status

This library provides a way of parsing ics calendar files. Supports repetition patterns, organizer and attendees. It also supports both local and remote files to be parsed.

Status

This is a work in progress. It needs a lot more tests and a small refactor on some parts as well as CI and gopkg.in versions.

Install

go get https://github.com/erizocosmico/go-ics

How to use it

import "github.com/erizocosmico/go-ics"

// ...
calendar, err := ics.ParseCalendar("local file URL or remote URL", 0, nil)

TODO's

  • Urgently rewrite the whole parser
  • Explicitly handle all errors.
  • trimField should NOT be a regex compiled on runtime.
  • func names improvement
  • divide parseEvents in smaller, testable functions
  • test individual functions

LICENSE

MIT License, see LICENSE

Based on the work of PuloV.