Codebase list golang-github-vbauerster-mpb / fe7758b
update doc comments Vladimir Bauer 4 years ago
1 changed file(s) with 7 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
88 // BarFiller interface.
99 // Bar (without decorators) renders itself by calling BarFiller's Fill method.
1010 //
11 // reqWidth is requested width, set by `func WithWidth(int) ContainerOption`.
11 // reqWidth is requested width set by `func WithWidth(int) ContainerOption`.
1212 // If not set, it defaults to terminal width.
13 //
14 // Default implementations can be obtained via:
15 //
16 // func NewBarFiller(BarStyle()) BarFiller
17 // func NewBarFiller(SpinnerStyle()) BarFiller
1813 //
1914 type BarFiller interface {
2015 Fill(w io.Writer, reqWidth int, stat decor.Statistics)
2116 }
2217
2318 // BarFillerBuilder interface.
19 // Default implementations are:
20 //
21 // BarStyle()
22 // SpinnerStyle()
23 // NopStyle()
24 //
2425 type BarFillerBuilder interface {
2526 Build() BarFiller
2627 }