aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/vbauerster/mpb/v7/bar_filler_nop.go
blob: 1a7086fecb673c4de1055773e55f009b95e17c64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package mpb

import (
	"io"

	"github.com/vbauerster/mpb/v7/decor"
)

// NopStyle provides BarFillerBuilder which builds NOP BarFiller.
func NopStyle() BarFillerBuilder {
	return BarFillerBuilderFunc(func() BarFiller {
		return BarFillerFunc(func(io.Writer, int, decor.Statistics) {})
	})
}