Codebase list golang-github-vbauerster-mpb / 8161a38
Options comments Vladimir Bauer 9 years ago
2 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
11
22 import "github.com/vbauerster/mpb/decor"
33
4 // BarOption is a function option which changes the default behavior of a bar,
5 // if passed to p.AddBar(int64, ...BarOption)
46 type BarOption func(*state)
57
68 func AppendDecorators(appenders ...decor.DecoratorFunc) BarOption {
77 "github.com/vbauerster/mpb/cwriter"
88 )
99
10 // ProgressOption is a function option which changes the default behavior of
11 // progress pool, if passed to mpb.New(...ProgressOption)
1012 type ProgressOption func(*pConf)
1113
1214 // WithWidth overrides default width 80