schedule

package
v0.0.0-...-aa64b73 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TruncateToDay

func TruncateToDay(t time.Time) time.Time

Types

type Event

type Event struct {
	Start       time.Time
	Summary     string
	Description string
}

type Schedule

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

func NewSchedule

func NewSchedule(calUrl string) *Schedule

func (*Schedule) GetEvents

func (s *Schedule) GetEvents() ([]*Event, error)

func (*Schedule) Upcoming

func (s *Schedule) Upcoming(end time.Duration) ([]*Event, error)

returns the events between now and the end specified time

Jump to

Keyboard shortcuts

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