data

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cafeteria

type Cafeteria struct {
	Menu []Food
}

Cafeteria represents the cafeteria menu. It contains a slice of Food structs.

type Class

type Class struct {
	Name      string
	ClassCode string
	Building  string
	TimeStart string
	TimeEnd   string
}

Class represents one continous timeblock in the schedule.

type Food

type Food struct {
	Name     string
	Calories string
}

Food represents a food item in the cafeteria menu.

type Schedule

type Schedule struct {
	Classes [7][]Class
}

Schedule wraps an array indexed by the day of the week. Each element contains the classes on that day. The 0th element is Monday, the 6th element is Sunday.

type Wallet

type Wallet struct {
	Shuttle float64
	Meal    float64
	Print   float64
}

Wallet contains infomation about the user's wallet balances. The values are floats of Turkish Lira.

Jump to

Keyboard shortcuts

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