MCPcopy
hub / github.com/pterm/pterm / Print

Method Print

box_printer.go:341–345  ·  view source on GitHub ↗

Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.

(a ...any)

Source from the content-addressed store, hash-verified

339// Spaces are added between operands when neither is a string.
340// It returns the number of bytes written and any write error encountered.
341func (p BoxPrinter) Print(a ...any) *TextPrinter {
342 Fprint(p.Writer, p.Sprint(a...))
343 tp := TextPrinter(p)
344 return &tp
345}
346
347// Println formats using the default formats for its operands and writes to standard output.
348// Spaces are always added between operands and a newline is appended.

Callers

nothing calls this directly

Calls 3

SprintMethod · 0.95
FprintFunction · 0.85
TextPrinterInterface · 0.85

Tested by

no test coverage detected