events

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

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapCoursesToMaxStudents

func MapCoursesToMaxStudents(courses []Course) map[string]int

MapCoursesToMaxStudents maps course names to their maximum number of students

func MapCoursesToTimeSlots

func MapCoursesToTimeSlots(courses []Course) map[string]string

MapCoursesToTimeSlots maps course names to their time slots

Types

type Course

type Course struct {
	Name        string
	MaxStudents int
	TimeSlot    string
}

func ReadCourses

func ReadCourses(filePath string) ([]Course, error)

ReadCourses reads courses from a CSV file and returns a slice of Course

Jump to

Keyboard shortcuts

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