calendar

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package calendar registers handlers of iCalendars, calendars of events and tasks, which return their events, which are searched for by when and where they are, a description of them in words, and their image as artwork

Index

Constants

View Source
const (
	// Namespace is the namespace of the events of a calendar
	Namespace = "ical"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	UID          string   `json:"uid,omitempty"`
	Kind         string   `json:"kind"` // event, or task
	Title        string   `json:"title,omitempty"`
	Description  string   `json:"description,omitempty"`
	Location     string   `json:"location,omitempty"`
	Start        string   `json:"start,omitempty"`
	End          string   `json:"end,omitempty"`
	Due          string   `json:"due,omitempty"` // when a task is due, as a date or an instant
	AllDay       bool     `json:"all_day,omitempty"`
	TZ           string   `json:"tz,omitempty"`      // the zone of a timed event, or UTC
	NoYear       bool     `json:"no_year,omitempty"` // a yearly event whose first year isn't known, such as a birthday
	RRule        string   `json:"rrule,omitempty"`
	ExDate       []string `json:"exdate,omitempty"`
	RecurrenceID string   `json:"recurrence_id,omitempty"`
	Status       string   `json:"status,omitempty"`
	Organizer    string   `json:"organizer,omitempty"`
	Attendees    []string `json:"attendees,omitempty"`
	Categories   []string `json:"categories,omitempty"`
}

Event is an event, or a task, of an iCalendar, which is stored as ical:event. Its start and end are dates, as 2006-01-02, when it's all day, or instants in UTC, as RFC 3339, when it's timed, where the end is exclusive. A timed event in a zone is converted to UTC with its zone, and one without a zone, or in a zone which isn't known, is treated as UTC, and has no zone. A repeating event has its rule and the starts it excludes, as they're written, and an occurrence of it which is changed has the start it replaces as its recurrence ID. A task has when it's due.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL