Codebase list golang-github-vbauerster-mpb / ae293b2
WithOutput doc edit Vladimir Bauer 3 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
7676 }
7777 }
7878
79 // WithOutput overrides default os.Stdout output. Setting it to nil
80 // will effectively disable auto refresh rate and discard any output,
81 // useful if you want to disable progress bars with little overhead.
79 // WithOutput overrides default os.Stdout output. If underlying io.Writer
80 // is not a terminal then auto refresh is disabled unless ForceAutoRefresh
81 // option is provided.
8282 func WithOutput(w io.Writer) ContainerOption {
8383 if w == nil {
8484 w = io.Discard