{"id":37192479,"url":"https://github.com/bootjp/gocal","last_synced_at":"2026-01-14T22:19:54.286Z","repository":{"id":57597530,"uuid":"377898009","full_name":"bootjp/gocal","owner":"bootjp","description":"ICS file parser in Golang","archived":false,"fork":true,"pushed_at":"2021-06-17T16:41:35.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T06:30:21.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"apognu/gocal","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bootjp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-17T16:38:05.000Z","updated_at":"2021-06-17T16:41:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bootjp/gocal","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bootjp/gocal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootjp%2Fgocal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootjp%2Fgocal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootjp%2Fgocal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootjp%2Fgocal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bootjp","download_url":"https://codeload.github.com/bootjp/gocal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootjp%2Fgocal/sbom","scorecard":{"id":248068,"data":{"date":"2025-08-11","repo":{"name":"github.com/bootjp/gocal","commit":"01f7604464fe206172517c2bca8f422f7976dbce"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T07:57:37.236Z","repository_id":57597530,"created_at":"2025-08-17T07:57:37.236Z","updated_at":"2025-08-17T07:57:37.236Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T22:19:53.566Z","updated_at":"2026-01-14T22:19:54.281Z","avatar_url":"https://github.com/bootjp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gocal\n\nFast (and opinionated) ICAL parser in Golang.\n\nGocal takes an io.Reader and produces an array of `Event`s from it.\n\nEvent are parsed between two given dates (`Gocal.Start` and `Gocal.End`, 3 months by default). Any event outside this range will be ignored. This behavior can be disabled by setting `SkipBounds` to `true` in the `Gocal` struct. Please note that the behavior will still be enacted for recurring event, to prevent infinite parsing.\n\n## Usage\n\n```go\npackage main\n\nimport (\n  \"github.com/apognu/gocal\"\n)\n\nfunc main() {\n  f, _ := os.Open(\"/tmp/mycalendar.ics\")\n  defer f.Close()\n\n  start, end := time.Now(), time.Now().Add(12*30*24*time.Hour)\n\n  c := gocal.NewParser(f)\n  c.Start, c.End = \u0026start, \u0026end\n  c.Parse()\n\n  for _, e := range c.Events {\n    fmt.Printf(\"%s on %s by %s\", e.Summary, e.Start, e.Organizer.Cn)\n  }\n}\n```\n\n### Timezones\n\nTimezones specified in `TZID` attributes are parsed and expected to be parsable by Go's `time.LoadLocation()` method. If you have an ICS file using some other form of representing timezones, you can specify the mapping to be used with a callback function:\n\n```go\nvar tzMapping = map[string]string{\n  \"My Super Zone\": \"Asia/Tokyo\",\n  \"My Ultra Zone\": \"America/Los_Angeles\",\n}\n\ngocal.SetTZMapper(func(s string) (*time.Location, error) {\n  if tzid, ok := tzMapping[s]; ok {\n    return time.LoadLocation(tzid)\n  }\n  return nil, fmt.Errorf(\"\")\n})\n```\n\nIf this callback returns an `error`, the usual method of parsing the timezone will be tried. If both those methods fail, the date and time will be considered UTC.\n\n### Custom X-* properties\n\nAny property starting with `X-` is considered a custom property and is unmarshalled in the `event.CustomAttributes` map of string to string. For instance, a `X-LABEL` would be accessible through `event.CustomAttributes[\"X-LABEL\"]`.\n\n### Recurring rules\n\nRecurring rule are automatically parsed and expanded during the period set by `Gocal.Start` and `Gocal.End`.\n\nThat being said, I try to handle the most common situations for `RRULE`s, as well as overrides (`EXDATE`s and `RECURRENCE-ID` overrides).\n\nThis was tested only lightly, I might not cover all the cases.\n\n### Strict mode\n\nBy default, any error in parsing an event will result in the whole feed being aborted altogether (this includes missing or invalid attributes). You can change strict mode's behavior by changing the `Strict.Mode` attribute of the `Gocal` struct, with the following behavior:\n\n * `StrictModeFailFeed` - **default**, abort parsing of the whole feed\n * `StrictModeFailEvent` - skip the current event\n * `StrictModeFailAttribute` - skip parsing of the failing attribute, set the `Valid` attribute of the event to `false`\n\n## Limitations\n\nI do not pretend this abides by [RFC 5545](https://tools.ietf.org/html/rfc5545), this only covers parts I needed to be parsed for my own personal use. Among other, most property parameters are not handled by the library, and, for now, only the following properties are parsed:\n\n * `UID`\n * `SUMMARY` / `DESCRIPTION`\n * `DTSTART` / `DTEND` / `DURATION` (day-long, local, UTC and `TZID`d)\n * `DTSTAMP` / `CREATED` / `LAST-MODIFIED`\n * `LOCATION`\n * `STATUS`\n * `ORGANIZER` (`CN`; `DIR` and value)\n * `ATTENDEE`s (`CN`, `DIR`, `PARTSTAT` and value)\n * `ATTACH` (`FILENAME`, `ENCODING`, `VALUE`, `FMTTYPE` and value)\n * `CATEGORIES`\n * `GEO`\n * `RRULE`\n * `X-*`\n\nAlso, we ignore whatever's not a `VEVENT`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootjp%2Fgocal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbootjp%2Fgocal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootjp%2Fgocal/lists"}