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

Method Print

basic_text_printer.go:61–65  ·  view source on GitHub ↗

Print formats using the default formats for its operands and writes to provided writer. 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

59// Spaces are added between operands when neither is a string.
60// It returns the number of bytes written and any write error encountered.
61func (p *BasicTextPrinter) Print(a ...any) *TextPrinter {
62 Fprint(p.Writer, p.Sprint(a...))
63 tp := TextPrinter(p)
64 return &tp
65}
66
67// Println formats using the default formats for its operands and writes to provided writer.
68// 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