MCPcopy Index your code
hub / github.com/pterm/pterm / Sprintfln

Method Sprintfln

header_printer.go:170–172  ·  view source on GitHub ↗

Sprintfln formats according to a format specifier and returns the resulting string. Spaces are always added between operands and a newline is appended.

(format string, a ...any)

Source from the content-addressed store, hash-verified

168// Sprintfln formats according to a format specifier and returns the resulting string.
169// Spaces are always added between operands and a newline is appended.
170func (p HeaderPrinter) Sprintfln(format string, a ...any) string {
171 return p.Sprintf(format, a...) + "\n"
172}
173
174// Print formats using the default formats for its operands and writes to standard output.
175// Spaces are added between operands when neither is a string.

Callers 1

PrintflnMethod · 0.95

Calls 1

SprintfMethod · 0.95

Tested by

no test coverage detected