forked from JonasFranzDEV/mensabot
…
|
||
---|---|---|
.. | ||
.gitignore | ||
.travis.yml | ||
README.md | ||
canteen.go | ||
coordinate.go | ||
meal.go | ||
openmensa.go | ||
util.go |
README.md
🍴openmensa
This is a small golang wrapper for the OpenMensa API. Very WIP.
Use it something like this:
import (
"fmt"
"github.com/kiliankoe/openmensa"
)
func main() {
canteens, _ := openmensa.GetCanteens(79, 80)
meals, _ := canteens[0].TodaysMeals()
for _, meal := range meals {
fmt.Println(meal)
}
}
// Hähnchenkeule mit Geflügelsoße, dazu buntes Gemüse und Petersilienkartoffeln
// Sojageschnetzeltes mit Waldpilzen, dazu Apfelrotkohl und Klöße
// Gefülltes Pizzabrötchen
// ...