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

Method Println

paragraph_printer.go:89–93  ·  view source on GitHub ↗

Println formats using the default formats for its operands 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.

(a ...any)

Source from the content-addressed store, hash-verified

87// Spaces are always added between operands and a newline is appended.
88// It returns the number of bytes written and any write error encountered.
89func (p *ParagraphPrinter) Println(a ...any) *TextPrinter {
90 Fprint(p.Writer, p.Sprintln(a...))
91 tp := TextPrinter(p)
92 return &tp
93}
94
95// Printf formats according to a format specifier and writes to standard output.
96// It returns the number of bytes written and any write error encountered.

Callers 3

PrintOnErrorMethod · 0.95
PrintOnErrorfMethod · 0.95

Calls 3

SprintlnMethod · 0.95
FprintFunction · 0.85
TextPrinterInterface · 0.85

Tested by 1