()
| 7 | ) |
| 8 | |
| 9 | func main() { |
| 10 | // An example from ksctl tool |
| 11 | // It didn't work in v2 due to inconsistent padding |
| 12 | // when title is bigger than content width |
| 13 | title := "KUBECONFIG env var" |
| 14 | content := "/use/ksctl" |
| 15 | |
| 16 | b := box.NewBox().Padding(4, 2). |
| 17 | Style(box.Double). |
| 18 | Color("#8B75FF"). |
| 19 | TitlePosition(box.Top). |
| 20 | TitleColor("#00ffb2"). |
| 21 | ContentColor("#12c78f") |
| 22 | |
| 23 | fmt.Println(b.MustRender(title, content)) |
| 24 | } |
nothing calls this directly
no test coverage detected