sisparse

package
v0.0.0-...-6c3c1cc Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DEBUG = false

Variables

This section is empty.

Functions

func GetCourseEvents

func GetCourseEvents(courseCode string) ([][]Event, error)

Returns a two-dimensional array containing groups of events. Each group is a slice of events which must be enrolled together, the groups represent different times/teachers of the same course. Also, lectures and seminars/practicals are in separate groups.

Types

type Event

type Event struct {
	Type       string
	Name       string
	Teacher    string
	Room       string
	Building   string
	Language   string
	Day        int
	TimeFrom   time.Time
	TimeTo     time.Time
	WeekParity int // Every week = 0; Odd weeks = 1; Even weeks = 2
}

func (Event) MarshalJSON

func (e Event) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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