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

Function Printfln

print.go:72–74  ·  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

70// Spaces are always added between operands and a newline is appended.
71// It returns the number of bytes written and any write error encountered.
72func Printfln(format string, a ...any) {
73 Print(Sprintfln(format, a...))
74}
75
76// PrintOnError prints every error which is not nil.
77// If every error is nil, nothing will be printed.

Callers 2

TestPrintflnFunction · 0.92

Calls 2

PrintFunction · 0.85
SprintflnFunction · 0.85

Tested by 1

TestPrintflnFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…