MCPcopy
hub / github.com/pterm/pterm / Printf

Method Printf

color.go:196–200  ·  view source on GitHub ↗

Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered. Input will be colored with the parent Color.

(format string, a ...any)

Source from the content-addressed store, hash-verified

194// It returns the number of bytes written and any write error encountered.
195// Input will be colored with the parent Color.
196func (c Color) Printf(format string, a ...any) *TextPrinter {
197 Print(c.Sprintf(format, a...))
198 tc := TextPrinter(c)
199 return &tc
200}
201
202// Printfln formats according to a format specifier and writes to standard output.
203// Spaces are always added between operands and a newline is appended.

Callers

nothing calls this directly

Calls 3

SprintfMethod · 0.95
PrintFunction · 0.85
TextPrinterInterface · 0.85

Tested by

no test coverage detected