calendar

package
v0.0.0-...-0ad692d Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstDayOfISOWeek

func FirstDayOfISOWeek(date time.Time) time.Time

Types

type ByDate

type ByDate []Event

func (ByDate) Len

func (a ByDate) Len() int

func (ByDate) Less

func (a ByDate) Less(i, j int) bool

func (ByDate) Swap

func (a ByDate) Swap(i, j int)

type Calendar

type Calendar struct {
	Name   string
	Events []Event
}

func FromCelcat

func FromCelcat(celcatCalendar []celcat.CelcatCalEvent, name string) Calendar

func (Calendar) NextEventToJson

func (calendar Calendar) NextEventToJson() string

func (*Calendar) TomorrowFirstEvent

func (c *Calendar) TomorrowFirstEvent() Event

type Event

type Event struct {
	Id         string
	Start      time.Time
	End        time.Time
	AllDay     bool
	Category   string
	Subjects   []string
	Location   []string
	Professors []string
	Notes      string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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