diff --git a/bar_filler_bar.go b/bar_filler_bar.go index d8362dc..34d7d2c 100644 --- a/bar_filler_bar.go +++ b/bar_filler_bar.go @@ -39,6 +39,16 @@ Reverse() BarStyleComposer } +type component struct { + width int + bytes []byte +} + +type flushSection struct { + meta func(io.Writer, ...interface{}) error + bytes []byte +} + type bFiller struct { components [components]component meta [components]func(io.Writer, ...interface{}) error @@ -50,11 +60,6 @@ } } -type component struct { - width int - bytes []byte -} - type barStyle struct { style [components]string metaFuncs [components]func(io.Writer, ...interface{}) error @@ -253,11 +258,6 @@ return err } return s.meta[iRbound](w, s.components[iRbound].bytes) -} - -type flushSection struct { - meta func(io.Writer, ...interface{}) error - bytes []byte } func flush(w io.Writer, rev bool, sections ...flushSection) error {