MCPcopy
hub / github.com/edoardottt/cariddi / EncapsulateCustomGreen

Function EncapsulateCustomGreen

pkg/output/color.go:64–69  ·  view source on GitHub ↗

EncapsulateCustomGreen takes as input a string and print it with the green color.

(alert string, inp string)

Source from the content-addressed store, hash-verified

62// EncapsulateCustomGreen takes as input a string and
63// print it with the green color.
64func EncapsulateCustomGreen(alert string, inp string) {
65 // Create a custom print function for convenience
66 green := color.New(color.FgGreen).PrintfFunc()
67 green("[ %s ] ", alert)
68 fmt.Println(inp)
69}
70
71// EncapsulateCustomRed takes as input a string and
72// print it with the red color.

Callers 1

mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected