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

Method Printf

color.go:348–350  ·  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 Style.

(format string, a ...any)

Source from the content-addressed store, hash-verified

346// It returns the number of bytes written and any write error encountered.
347// Input will be colored with the parent Style.
348func (s Style) Printf(format string, a ...any) {
349 Print(s.Sprintf(format, a...))
350}
351
352// Printfln formats according to a format specifier and writes to standard output.
353// Spaces are always added between operands and a newline is appended.

Callers 1

Calls 2

SprintfMethod · 0.95
PrintFunction · 0.85

Tested by 1