MCPcopy Create free account
hub / github.com/aptly-dev/aptly / ColoredPrintf

Method ColoredPrintf

task/output.go:120–122  ·  view source on GitHub ↗

ColoredPrintf does printf in a safe manner + newline currently are no colors supported.

(msg string, a ...interface{})

Source from the content-addressed store, hash-verified

118// ColoredPrintf does printf in a safe manner + newline
119// currently are no colors supported.
120func (t *Output) ColoredPrintf(msg string, a ...interface{}) {
121 _, _ = t.WriteString(fmt.Sprintf(msg+"\n", a...))
122}
123
124// PrintfStdErr does printf but in safe manner to output
125func (t *Output) PrintfStdErr(msg string, a ...interface{}) {

Callers

nothing calls this directly

Calls 1

WriteStringMethod · 0.95

Tested by

no test coverage detected