MCPcopy
hub / github.com/pterm/pterm / Printfln

Method Printfln

center_printer.go:135–139  ·  view source on GitHub ↗

Printfln formats according to a format specifier and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.

(format string, a ...any)

Source from the content-addressed store, hash-verified

133// Spaces are always added between operands and a newline is appended.
134// It returns the number of bytes written and any write error encountered.
135func (p CenterPrinter) Printfln(format string, a ...any) *TextPrinter {
136 Fprint(p.Writer, p.Sprintfln(format, a...))
137 tp := TextPrinter(p)
138 return &tp
139}
140
141// PrintOnError prints every error which is not nil.
142// If every error is nil, nothing will be printed.

Callers

nothing calls this directly

Calls 3

SprintflnMethod · 0.95
FprintFunction · 0.85
TextPrinterInterface · 0.85

Tested by

no test coverage detected