()
| 8 | ) |
| 9 | |
| 10 | func main() { |
| 11 | b := box.NewBox().Padding(2, 0). |
| 12 | Style(box.Single). |
| 13 | Color(box.Green). |
| 14 | TitlePosition(box.Top). |
| 15 | WrapContent(true) |
| 16 | // Provide your limit with WrapLimit if needed |
| 17 | |
| 18 | s, err := b.Render("Content Wrap!", strings.Repeat("\tBox CLI Maker 盒子製 造商,📦 ", 160)) |
| 19 | if err != nil { |
| 20 | panic(err) |
| 21 | } |
| 22 | fmt.Println(s) |
| 23 | } |
nothing calls this directly
no test coverage detected