Codebase list golang-github-vbauerster-mpb / cbaa5ed
return interface Vladimir Bauer 6 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
8383 }
8484 }
8585
86 func makeClearOnCompleteFiller(filler Filler) FillerFunc {
87 return func(w io.Writer, width int, st *decor.Statistics) {
86 func makeClearOnCompleteFiller(filler Filler) Filler {
87 return FillerFunc(func(w io.Writer, width int, st *decor.Statistics) {
8888 if st.Completed {
8989 w.Write([]byte{})
9090 } else {
9191 filler.Fill(w, width, st)
9292 }
93 }
93 })
9494 }
9595
9696 // BarPriority sets bar's priority. Zero is highest priority, i.e. bar