We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d319c5 commit 4e4d2f6Copy full SHA for 4e4d2f6
tl.go
@@ -17,13 +17,13 @@ type Event struct {
17
Duration time.Duration
18
}
19
20
-type TemplateDay struct {
+type Day struct {
21
Events []Event
22
23
24
type TemplateData struct {
25
DayWidth float32
26
- Days []TemplateDay
+ Days []Day
27
28
29
func read_data_file(in io.Reader) (events []Event) {
@@ -143,7 +143,7 @@ func (e *Event) Height() float32 {
143
func generate_report(events [][]Event) (td TemplateData) {
144
td.DayWidth = 100.0 / float32(len(events))
145
for i, day := range events {
146
- var tday TemplateDay
+ var tday Day
147
if i == 0 {
148
// Stuff an empty event at the beginning of the first day
149
first_event_time := day[0].Time
0 commit comments