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

Method Printf

header_printer.go:194–198  ·  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.

(format string, a ...any)

Source from the content-addressed store, hash-verified

192// Printf formats according to a format specifier and writes to standard output.
193// It returns the number of bytes written and any write error encountered.
194func (p *HeaderPrinter) Printf(format string, a ...any) *TextPrinter {
195 Fprint(p.Writer, p.Sprintf(format, a...))
196 tp := TextPrinter(p)
197 return &tp
198}
199
200// Printfln formats according to a format specifier and writes to standard output.
201// Spaces are always added between operands and a newline is appended.

Callers

nothing calls this directly

Calls 3

SprintfMethod · 0.95
FprintFunction · 0.85
TextPrinterInterface · 0.85

Tested by

no test coverage detected