MCPcopy
hub / github.com/digitalocean/doctl / Sprintf

Method Sprintf

commands/charm/charm.go:61–63  ·  view source on GitHub ↗

Sprintf formats the specified text with the style applied.

(format string, a ...any)

Source from the content-addressed store, hash-verified

59
60// Sprintf formats the specified text with the style applied.
61func (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.
66func (s Style) Sprint(str any) string {

Callers 15

StringMethod · 0.80
CompleteMethod · 0.80
CompleteJSONMethod · 0.80
userAgentFunction · 0.80
nskeyFunction · 0.80
isRequiredFunction · 0.80
ErrorMethod · 0.80
ErrorMethod · 0.80

Calls

no outgoing calls

Tested by 12

TestMainFunction · 0.64
TestKubernetesCreateFunction · 0.64
TestVolumeActionsAttachFunction · 0.64
TestVolumeDetachFunction · 0.64
TestNewURNFunction · 0.64
setUpTarGzFunction · 0.64
setUpZipFunction · 0.64
wsHandlerFunction · 0.64
TestNewBuilderComponentFunction · 0.64
ErrorfMethod · 0.64
waitForLocalServerFunction · 0.64