MCPcopy
hub / github.com/pterm/pterm / Sprintf

Method Sprintf

color.go:318–320  ·  view source on GitHub ↗

Sprintf formats according to a format specifier and returns the resulting string. Input will be colored with the parent Style.

(format string, a ...any)

Source from the content-addressed store, hash-verified

316// Sprintf formats according to a format specifier and returns the resulting string.
317// Input will be colored with the parent Style.
318func (s Style) Sprintf(format string, a ...any) string {
319 return s.Sprint(Sprintf(format, a...))
320}
321
322// Sprintfln formats according to a format specifier and returns the resulting string.
323// Spaces are always added between operands and a newline is appended.

Callers 2

PrintfMethod · 0.95

Calls 2

SprintMethod · 0.95
SprintfFunction · 0.85

Tested by 1