Codebase list golang-github-vbauerster-mpb / f7b9952
refactoring: termWidth to width Vladimir Bauer 7 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
1818 // any bar kind, by implementing this interface and passing it to the
1919 // Add method.
2020 type Filler interface {
21 Fill(w io.Writer, termWidth int, stat *decor.Statistics)
21 Fill(w io.Writer, width int, stat *decor.Statistics)
2222 }
2323
2424 // FillerFunc is function type adapter to convert function into Filler.
25 type FillerFunc func(w io.Writer, termWidth int, stat *decor.Statistics)
26
27 func (f FillerFunc) Fill(w io.Writer, termWidth int, stat *decor.Statistics) {
28 f(w, termWidth, stat)
25 type FillerFunc func(w io.Writer, width int, stat *decor.Statistics)
26
27 func (f FillerFunc) Fill(w io.Writer, width int, stat *decor.Statistics) {
28 f(w, width, stat)
2929 }
3030
3131 // Bar represents a progress Bar.