diff --git a/bar.go b/bar.go index 687de07..811aafc 100644 --- a/bar.go +++ b/bar.go @@ -38,7 +38,7 @@ // Statistics represents statistics of the progress bar. // Cantains: Total, Current, TimeElapsed, TimePerItemEstimate type Statistics struct { - Id int + ID int Completed bool Total int64 Current int64 @@ -502,7 +502,7 @@ func newStatistics(s *state) *Statistics { return &Statistics{ - Id: s.id, + ID: s.id, Completed: s.completed, Total: s.total, Current: s.current, diff --git a/bar_test.go b/bar_test.go index 0467fd9..493f9f2 100644 --- a/bar_test.go +++ b/bar_test.go @@ -234,7 +234,7 @@ name := fmt.Sprintf("b#%02d:", i) bar := p.AddBarWithID(i, 100). PrependFunc(func(s *mpb.Statistics, yw chan<- int, mw <-chan int) string { - if s.Id == 2 && s.Current >= 42 { + if s.ID == 2 && s.Current >= 42 { panic(wantPanic) } return name