ics

package module
v0.0.0-...-f73e732 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: 0BSD Imports: 9 Imported by: 0

README

ICS

Unit Test Workflow

This module writes ICS files that conform to RFC 5545. It provides an extremely limited subset of all possible functionality.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calendar

type Calendar struct {
	ID     string
	Events []Event
}

func (*Calendar) Bytes

func (c *Calendar) Bytes() []byte

type Event

type Event struct {
	Name         string
	UID          string
	StartDate    time.Time
	Duration     time.Duration
	TZ           *TZ
	LastModified time.Time
}

type TZ

type TZ struct {
	// contains filtered or unexported fields
}

A TZ defines a particular time zone.

func NewTZAmerica

func NewTZAmerica(id string, offset int, standard, daylight string) *TZ

NewTZAmerica creates a time zone with America’s Daylight Savings Time rules.

Jump to

Keyboard shortcuts

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