-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ec4e04b
Showing
8 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module github.com/OpenTimetable/GOTTF | ||
|
||
go 1.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package objects | ||
|
||
type Class struct { | ||
Substitution bool `json:"substitution"` | ||
Examination bool `json:"examination"` | ||
Canceled bool `json:"canceled"` | ||
Name string `json:"name"` | ||
Abbreviation string `json:"abbreviation"` | ||
Location string `json:"location"` | ||
Hosts []string `json:"hosts"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package objects | ||
|
||
type Cues struct { | ||
Periods map[string]Span `json:"periods"` | ||
Recesses []Span `json:"recesses"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package objects | ||
|
||
type Day struct { | ||
Date string `json:"date"` | ||
Classes map[string]Class `json:"classes"` | ||
Events []Event `json:"events"` | ||
DayEvents []DayEvent `json:"day_events"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package objects | ||
|
||
type DayEvent struct { | ||
Title string `json:"title"` | ||
Location string `json:"location"` | ||
Hosts []string `json:"hosts"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package objects | ||
|
||
import "time" | ||
|
||
type Event struct { | ||
From time.Time `json:"from"` | ||
To time.Time `json:"to"` | ||
Title string `json:"title"` | ||
Location string `json:"location"` | ||
Hosts []string `json:"hosts"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package objects | ||
|
||
import "time" | ||
|
||
type Span struct { | ||
From time.Time `json:"from"` | ||
To time.Time `json:"to"` | ||
} |