MCPcopy
hub / github.com/pterm/pterm / Sprintln

Method Sprintln

paragraph_printer.go:62–64  ·  view source on GitHub ↗

Sprintln formats using the default formats for its operands and returns the resulting string. Spaces are always added between operands and a newline is appended.

(a ...any)

Source from the content-addressed store, hash-verified

60// Sprintln formats using the default formats for its operands and returns the resulting string.
61// Spaces are always added between operands and a newline is appended.
62func (p ParagraphPrinter) Sprintln(a ...any) string {
63 return p.Sprint(Sprintln(a...)) + "\n"
64}
65
66// Sprintf formats according to a format specifier and returns the resulting string.
67func (p ParagraphPrinter) Sprintf(format string, a ...any) string {

Callers 1

PrintlnMethod · 0.95

Calls 2

SprintMethod · 0.95
SprintlnFunction · 0.85

Tested by

no test coverage detected