diff --git a/bar.go b/bar.go index f0f3d61..6315a7a 100644 --- a/bar.go +++ b/bar.go @@ -19,14 +19,14 @@ // any bar kind, by implementing this interface and passing it to the // Add method. type Filler interface { - Fill(w io.Writer, termWidth int, stat *decor.Statistics) + Fill(w io.Writer, width int, stat *decor.Statistics) } // FillerFunc is function type adapter to convert function into Filler. -type FillerFunc func(w io.Writer, termWidth int, stat *decor.Statistics) - -func (f FillerFunc) Fill(w io.Writer, termWidth int, stat *decor.Statistics) { - f(w, termWidth, stat) +type FillerFunc func(w io.Writer, width int, stat *decor.Statistics) + +func (f FillerFunc) Fill(w io.Writer, width int, stat *decor.Statistics) { + f(w, width, stat) } // Bar represents a progress Bar.