BoxPrinter is able to render a box around printables.
| 12 | |
| 13 | // BoxPrinter is able to render a box around printables. |
| 14 | type BoxPrinter struct { |
| 15 | Title string |
| 16 | TitleTopLeft bool |
| 17 | TitleTopRight bool |
| 18 | TitleTopCenter bool |
| 19 | TitleBottomLeft bool |
| 20 | TitleBottomRight bool |
| 21 | TitleBottomCenter bool |
| 22 | TextStyle *Style |
| 23 | VerticalString string |
| 24 | BoxStyle *Style |
| 25 | HorizontalString string |
| 26 | TopRightCornerString string |
| 27 | TopLeftCornerString string |
| 28 | BottomLeftCornerString string |
| 29 | BottomRightCornerString string |
| 30 | TopPadding int |
| 31 | BottomPadding int |
| 32 | RightPadding int |
| 33 | LeftPadding int |
| 34 | Writer io.Writer |
| 35 | } |
| 36 | |
| 37 | // DefaultBox is the default BoxPrinter. |
| 38 | var DefaultBox = BoxPrinter{ |
nothing calls this directly
no outgoing calls
no test coverage detected