You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
824 B
28 lines
824 B
## 🍴openmensa
|
|
|
|
[](https://godoc.org/github.com/kiliankoe/openmensa) [](https://travis-ci.org/kiliankoe/openmensa)
|
|
|
|
This is a small golang wrapper for the [OpenMensa](https://openmensa.org) API. Very WIP.
|
|
|
|
Use it something like this:
|
|
|
|
```go
|
|
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
|
|
// ...
|
|
```
|
|
|