MCPcopy
hub / github.com/pterm/pterm / Sprint

Function Sprint

print.go:23–25  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

21// Sprint formats using the default formats for its operands and returns the resulting string.
22// Spaces are added between operands when neither is a string.
23func Sprint(a ...any) string {
24 return color.Sprint(a...)
25}
26
27// Sprintf formats according to a format specifier and returns the resulting string.
28func Sprintf(format string, a ...any) string {

Callers 15

TestPanelPrinter_RenderFunction · 0.92
TestSprintFunction · 0.92
SprintMethod · 0.85
SprintMethod · 0.85
StartMethod · 0.85
SprintMethod · 0.85

Calls 1

SprintMethod · 0.65

Used in the wild real call sites across dependent graphs

searching dependent graphs…