()
| 7 | ) |
| 8 | |
| 9 | func main() { |
| 10 | baseBox := box.NewBox().Padding(2, 5).Style(box.Single) |
| 11 | |
| 12 | greenBox := baseBox.Copy().Color(box.Green) |
| 13 | redBox := baseBox.Copy().Color(box.Red) |
| 14 | |
| 15 | fmt.Println(baseBox.MustRender("Base box", "This is the base box.")) |
| 16 | fmt.Println(greenBox.MustRender("Green box", "This is a green box.")) |
| 17 | fmt.Println(redBox.MustRender("Red box", "This is a red box.")) |
| 18 | } |
nothing calls this directly
no test coverage detected