MCPcopy Create free account
hub / github.com/box-cli-maker/box-cli-maker / main

Function main

examples/shared_styles/main.go:9–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func 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}

Callers

nothing calls this directly

Calls 5

StyleMethod · 0.80
PaddingMethod · 0.80
ColorMethod · 0.80
CopyMethod · 0.80
MustRenderMethod · 0.80

Tested by

no test coverage detected