Documentation
¶
Index ¶
- Constants
- type HourEvent
- type HourEvents
- type PersonPlan
- type Plans
- type SemesterPlan
- func (sp *SemesterPlan) AddPersonPlan(persplan *PersonPlan)
- func (sp *SemesterPlan) ForAllWeekdays(fn func(string, time.Weekday, int, string) string) string
- func (sp *SemesterPlan) GetHourEventStructs(t time.Time) HourEvents
- func (sp *SemesterPlan) String() string
- func (sp *SemesterPlan) ViewDay(date time.Time) string
- func (sp *SemesterPlan) ViewHour(t time.Time) string
- type WorkDayAndLocation
Constants ¶
const ( FIRSTHOUR = 8 LASTHOUR = 22 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HourEvent ¶
type HourEvent struct {
// contains filtered or unexported fields
}
Info about one thing that can happen during an hour
type HourEvents ¶
type HourEvents []HourEvent
Info about everything that happens during an hour, per person
type PersonPlan ¶
type PersonPlan struct {
// contains filtered or unexported fields
}
func NewPersonPlan ¶
func NewPersonPlan(who string) *PersonPlan
func (*PersonPlan) AddWorkday ¶
func (pp *PersonPlan) AddWorkday(dayoftheweek time.Weekday, fromHour, uptoHour int, location string)
func (*PersonPlan) String ¶
func (pp *PersonPlan) String() string
type Plans ¶
type Plans struct {
// contains filtered or unexported fields
}
A plan is a collecion of plans for just a few months at a time
func (*Plans) AddSemesterPlan ¶
func (plans *Plans) AddSemesterPlan(sp *SemesterPlan)
Add a SemesterPlan to the collection of plans
func (*Plans) HTMLHourEvents ¶
Get a string that is suitable to put in a table cell
func (*Plans) PrintHourEvents ¶
TODO: Create a function just like this that returns a list of HourEvent structs
type SemesterPlan ¶
type SemesterPlan struct {
// contains filtered or unexported fields
}
func NewSemesterPlan ¶
func NewSemesterPlan(year, fromMonth, uptoMonth int) *SemesterPlan
func (*SemesterPlan) AddPersonPlan ¶
func (sp *SemesterPlan) AddPersonPlan(persplan *PersonPlan)
func (*SemesterPlan) ForAllWeekdays ¶
func (*SemesterPlan) GetHourEventStructs ¶
func (sp *SemesterPlan) GetHourEventStructs(t time.Time) HourEvents
Given an hour, gets information from all the person plans in the period plan
func (*SemesterPlan) String ¶
func (sp *SemesterPlan) String() string
type WorkDayAndLocation ¶
type WorkDayAndLocation struct {
// contains filtered or unexported fields
}