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

Method Print

color.go:333–335  ·  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. Input will be colored with the parent Style.

(a ...any)

Source from the content-addressed store, hash-verified

331// It returns the number of bytes written and any write error encountered.
332// Input will be colored with the parent Style.
333func (s Style) Print(a ...any) {
334 Print(s.Sprint(a...))
335}
336
337// Println formats using the default formats for its operands and writes to standard output.
338// Spaces are always added between operands and a newline is appended.

Callers 1

Calls 2

SprintMethod · 0.95
PrintFunction · 0.85

Tested by 1