MCPcopy
hub / github.com/pterm/pterm / String

Method String

color.go:245–247  ·  view source on GitHub ↗

String converts the color to a string. eg "35".

()

Source from the content-addressed store, hash-verified

243
244// String converts the color to a string. eg "35".
245func (c Color) String() string {
246 return fmt.Sprintf("%d", c)
247}
248
249// ToStyle converts the color to a style.
250func (c Color) ToStyle() *Style {

Callers 15

SprintMethod · 0.95
SprintMethod · 0.45
SprintMethod · 0.45
StartMethod · 0.45
SrenderMethod · 0.45
readStdoutFunction · 0.45
SprintMethod · 0.45
colors2codeFunction · 0.45
getStringMethod · 0.45
SrenderMethod · 0.45
parseElapsedTimeMethod · 0.45
SrenderMethod · 0.45

Calls 1

SprintfMethod · 0.65

Tested by 2

readStdoutFunction · 0.36
TestStyle_StringFunction · 0.36