Sprint formats using the default formats for its operands and returns the resulting string. Spaces are added between operands when neither is a string.
(a ...any)
| 31 | // Sprint formats using the default formats for its operands and returns the resulting string. |
| 32 | // Spaces are added between operands when neither is a string. |
| 33 | func (p BasicTextPrinter) Sprint(a ...any) string { |
| 34 | if p.Style == nil { |
| 35 | p.Style = NewStyle() |
| 36 | } |
| 37 | return p.Style.Sprint(a...) |
| 38 | } |
| 39 | |
| 40 | // Sprintln formats using the default formats for its operands and returns the resulting string. |
| 41 | // Spaces are always added between operands and a newline is appended. |