ttparser

package
v0.0.0-...-2ec85a8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(from, to time.Time, cfg Cfg) (map[time.Time][]RawEntry, error)

func OpenXLS

func OpenXLS(in io.ReadSeeker) (*xls.WorkBook, error)

func ReadEntries

func ReadEntries(book *xls.WorkBook) (map[time.Time][]RawEntry, error)

Parse XLS sheet with timetable from DUT. Note: It will parse correctly only one week of input. Second week and etc will be ignored.

Types

type Cfg

type Cfg struct {
	Course  int `yaml:"course"`
	Faculty int `yaml:"faculty"`
	Group   int `yaml:"group"`
}

type RawEntry

type RawEntry struct {
	Sequence  int
	Name      string
	Type      string
	Classroom string
	Lecturer  string
}

Jump to

Keyboard shortcuts

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