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

Function Printf

print.go:65–67  ·  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

63// Printf formats according to a format specifier and writes to standard output.
64// It returns the number of bytes written and any write error encountered.
65func Printf(format string, a ...any) {
66 Print(Sprintf(format, a...))
67}
68
69// Printfln formats according to a format specifier and writes to standard output.
70// Spaces are always added between operands and a newline is appended.

Callers 4

TestPrintfFunction · 0.92
mainFunction · 0.92
PrintfMethod · 0.85
PrintflnMethod · 0.85

Calls 2

PrintFunction · 0.85
SprintfFunction · 0.85

Tested by 1

TestPrintfFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…