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

Method Print

center_printer.go:109–113  ·  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

107// Spaces are added between operands when neither is a string.
108// It returns the number of bytes written and any write error encountered.
109func (p CenterPrinter) Print(a ...any) *TextPrinter {
110 Fprint(p.Writer, p.Sprint(a...))
111 tp := TextPrinter(p)
112 return &tp
113}
114
115// Println formats using the default formats for its operands and writes to standard output.
116// 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