MCPcopy Create free account
hub / github.com/gookit/color / Sprintf

Function Sprintf

utils.go:101–103  ·  view source on GitHub ↗

Sprintf format and return rendered string

(format string, a ...any)

Source from the content-addressed store, hash-verified

99
100// Sprintf format and return rendered string
101func Sprintf(format string, a ...any) string {
102 return ReplaceTag(fmt.Sprintf(format, a...))
103}
104
105// String alias of the ReplaceTag
106func String(s string) string { return ReplaceTag(s) }

Callers 1

TestPrintFunction · 0.85

Calls 2

ReplaceTagFunction · 0.85
SprintfMethod · 0.65

Tested by 1

TestPrintFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…