16 lines
224 B
Go
16 lines
224 B
Go
|
// course
|
||
|
package main
|
||
|
|
||
|
type Course struct {
|
||
|
Id int
|
||
|
Name string
|
||
|
Active bool
|
||
|
}
|
||
|
|
||
|
func getCourses() []Course {
|
||
|
return []Course{
|
||
|
Course{1, "Dummyveranstaltung", true},
|
||
|
Course{2, "Dummyveranstaltung 2", true},
|
||
|
}
|
||
|
}
|