MCPcopy
hub / github.com/keploy/keploy / FprintWrapper

Function FprintWrapper

cli/provider/util.go:67–78  ·  view source on GitHub ↗

FprintWrapper prints all its args (like fmt.Fprint) and optionally a leading newline.

(newLine bool, wr io.Writer, a ...interface{})

Source from the content-addressed store, hash-verified

65
66// FprintWrapper prints all its args (like fmt.Fprint) and optionally a leading newline.
67func FprintWrapper(newLine bool, wr io.Writer, a ...interface{}) {
68 if newLine {
69 if _, err := fmt.Fprintln(wr); err != nil {
70 log.Fatalf("Error printing newline: %v", err)
71 }
72 }
73 if len(a) > 0 {
74 if _, err := fmt.Fprint(wr, a...); err != nil {
75 log.Fatalf("Error printing output: %v", err)
76 }
77 }
78}
79
80// Get the color for the logo at position (i, j)
81func getLogoColor(i, j int) string {

Callers 1

printKeployLogoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected