OptionSetWriter sets the output writer (defaults to os.StdOut)
(w io.Writer)
| 257 | |
| 258 | // OptionSetWriter sets the output writer (defaults to os.StdOut) |
| 259 | func OptionSetWriter(w io.Writer) Option { |
| 260 | return func(p *ProgressBar) { |
| 261 | p.config.writer = w |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | // OptionSetRenderBlankState sets whether or not to render a 0% bar on construction |
| 266 | func OptionSetRenderBlankState(r bool) Option { |
no outgoing calls
searching dependent graphs…