Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lesson ¶
type Lesson struct { Day string `json:"day"` HourIndex string `json:"hourIndex"` Hour string `json:"hour"` Subject string `json:"subject"` Teacher string `json:"teacher,omitempty"` Classroom string `json:"classroom,omitempty"` }
Lesson represents a lesson instance, this type is uniform across the whole package.
type Timetable ¶
type Timetable interface { Parse() error LessonsMatrix() TimetableMatrix LessonsByDay() TimetableByDay }
func NewTimetable ¶
Use this function to initialize a Timetable. To use the created instance, parse its content using the Parse method.
type TimetableByDay ¶
type TimetableMatrix ¶
type TimetableMatrix [][][]*Lesson
Click to show internal directories.
Click to hide internal directories.