Options comments
Vladimir Bauer
9 years ago
| 1 | 1 | |
| 2 | 2 | import "github.com/vbauerster/mpb/decor" |
| 3 | 3 | |
| 4 | // BarOption is a function option which changes the default behavior of a bar, | |
| 5 | // if passed to p.AddBar(int64, ...BarOption) | |
| 4 | 6 | type BarOption func(*state) |
| 5 | 7 | |
| 6 | 8 | func AppendDecorators(appenders ...decor.DecoratorFunc) BarOption { |