BarExtender godoc
Vladimir Bauer
7 years ago
| 89 | 89 | } |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | // BarNewLineExtend takes user defined efn, which gets called each | |
| 93 | // render cycle. Any write to provided writer of efn, will appear on | |
| 94 | // new line of respective bar. | |
| 92 | // BarExtender is an option to extend bar to the next new line, with | |
| 93 | // arbitrary output. | |
| 95 | 94 | func BarExtender(extender Filler) BarOption { |
| 96 | 95 | return func(s *bState) { |
| 97 | 96 | s.extender = extender |