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

Function main

examples/lolcat/main.go:13–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11)
12
13func main() {
14 b := box.NewBox().Padding(2, 5).Style(box.Single).Color(box.Cyan).ContentAlign(box.Center)
15 s, err := b.Render(lolcat("Box CLI Maker"), lolcat("Render highly customizable boxes\n in the terminal"))
16 if err != nil {
17 panic(err)
18 }
19 fmt.Println(s)
20}
21
22func lolcat(str string) string {
23 var output string

Callers

nothing calls this directly

Calls 6

lolcatFunction · 0.85
ContentAlignMethod · 0.80
ColorMethod · 0.80
StyleMethod · 0.80
PaddingMethod · 0.80
RenderMethod · 0.80

Tested by

no test coverage detected