Sprintf formats the specified text with the style applied.
(format string, a ...any)
| 59 | |
| 60 | // Sprintf formats the specified text with the style applied. |
| 61 | func (s Style) Sprintf(format string, a ...any) string { |
| 62 | return s.style.Render(fmt.Sprintf(format, a...)) |
| 63 | } |
| 64 | |
| 65 | // Sprint applies the style to the specified text. |
| 66 | func (s Style) Sprint(str any) string { |
no outgoing calls