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

Method Print

header_printer.go:177–181  ·  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

175// Spaces are added between operands when neither is a string.
176// It returns the number of bytes written and any write error encountered.
177func (p *HeaderPrinter) Print(a ...any) *TextPrinter {
178 Fprint(p.Writer, p.Sprint(a...))
179 tp := TextPrinter(p)
180 return &tp
181}
182
183// Println formats using the default formats for its operands and writes to standard output.
184// 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