csvio

package
v0.0.0-...-0f01e0b Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DayToInt

func DayToInt(DaySTR string, Lecturer string) int

Convert busy day to day index (0-4)

func ExportSchedule

func ExportSchedule(schedule *model.Schedule, path string) error

ExportSchedule formats the schedule data into ScheduleCSVRow structs and writes it to the CSV file specified by the given path.

func LoadClassrooms

func LoadClassrooms(path string, delim rune) []*model.Classroom

LoadClassrooms reads and parses given csv file for classroom data.

func LoadCourses

func LoadCourses(pathToCourses string, pathToReserved string, pathToBusy string, pathToMandatory string, delim rune, ignored []string) ([]*model.Course, []*model.Reserved, []*model.Busy)

LoadCourses reads and parses given csv file for course data.

func PrintSchedule

func PrintSchedule(schedule *model.Schedule)

PrintSchedule prints weekly schedule grouped by department name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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