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

Method Println

header_printer.go:186–190  ·  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

184// Spaces are always added between operands and a newline is appended.
185// It returns the number of bytes written and any write error encountered.
186func (p *HeaderPrinter) Println(a ...any) *TextPrinter {
187 Fprint(p.Writer, p.Sprintln(a...))
188 tp := TextPrinter(p)
189 return &tp
190}
191
192// Printf formats according to a format specifier and writes to standard output.
193// It returns the number of bytes written and any write error encountered.

Callers 4

PrintOnErrorMethod · 0.95
PrintOnErrorfMethod · 0.95
mainFunction · 0.95

Calls 3

SprintlnMethod · 0.95
FprintFunction · 0.85
TextPrinterInterface · 0.85

Tested by 1