Documentation
¶
Index ¶
- Variables
- func ConvertDateToString(date time.Time) string
- func ConvertStringToDate(date string) time.Time
- func GetTipDescription(tip string, language Language) string
- type Additives
- type Day
- type Facility
- type Item
- type Language
- type Location
- type Mensa
- type MensaLocation
- type Nutrition
- type Prices
- type Sublocation
Constants ¶
This section is empty.
Variables ¶
View Source
var TipsMap = map[string]string{
"veg": "Vegetarisch",
"van": "Vegan",
"bio": "Bio",
"S": "Schwein",
"R": "Rind",
"L": "Lamm",
"W": "Wildfleisch",
"G": "Geflügel",
"F": "Fisch",
"T": "Tintenfisch",
}
View Source
var TipsMapEn = map[string]string{
"veg": "Vegetarian",
"van": "Vegan",
"bio": "Bio",
"S": "Pork",
"R": "Beef",
"L": "Lamb",
"W": "Game meat",
"G": "Poultry",
"F": "Fish",
"T": "Squid",
}
Functions ¶
func ConvertDateToString ¶
func ConvertStringToDate ¶
func GetTipDescription ¶
Returns the name of the tip or empty string if not found Example: S -> Schwein
Types ¶
type Facility ¶
type Facility int
const ( FACILITY_UNI_ULM Facility = 1 // Universität Ulm FACILITY_THU Facility = 2 // Technische Hochschule Ulm FACILITY_HS_AALEN Facility = 3 // Hochschule Aalen FACILITY_PAED_HS_SG Facility = 4 // Pädagogische Hochschule Schwäbisch Gmünd FACILITY_HS_GEST_SG Facility = 5 // Hochschule für Gestaltung Schwäbisch Gmünd FACILITY_HBC_BIB Facility = 6 // HBC. Biberach FACILITY_DHS_HDH Facility = 7 // Duale Hochschule Heidenheim )
type Location ¶
type Location int
const ( // Universität Ulm LOCATION_MENSA_UNI_ULM Location = 1 // Mensa in der Uni Ulm LOCATION_CAF_HELMHOLZ_UNI_ULM Location = 16 // Cafeteria Helmholtzstraße LOCATION_CAF_WEST_UNI_ULM Location = 2 // Cafeteria West // Technische Hochschule Ulm LOCATION_MENSA_THU Location = 3 // THU Ulm Mensa LOCATION_ESELSBERG_AUSG_THU Location = 10 // THU Ulm Außenstelle Oberer Eselsberg Essensausgabe // Hochschule Aalen LOCATION_MENSA_HS_AALEN Location = 7 // Mensa LOCATION_CAF_BURREN_HS_AALEN Location = 5 // Cafeteria in der Hochschule // Pädagogische Hochschule Schwäbisch Gmünd LOCATION_MENSA_PAED_HS_SG Location = 4 // Mensaria PH // Hochschule für Gestaltung Schwäbisch Gmünd LOCATION_HS_GEST_SG Location = 12 // Hochschule für Gestaltung Schwäbisch Gmünd // HBC. Biberach LOCATION_HBC_BIB Location = 6 // HBC. Biberach // Duale Hochschule Heidenheim LOCATION_DHS_HDH Location = 15 // Duale Hochschule Heidenheim )
type Mensa ¶
type Mensa struct {
Locations map[string]MensaLocation
}
type MensaLocation ¶
type MensaLocation struct {
Name string // Facility
SubLocations map[string]Sublocation
}
Click to show internal directories.
Click to hide internal directories.