Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/box-cli-maker/box-cli-maker
/ accent
Function
accent
examples/readme/main.go:50–57 ·
view source on GitHub ↗
(text, hex string)
Source
from the content-addressed store, hash-verified
48
}
49
50
func
accent(text, hex string) string {
51
c := ansi.XParseColor(hex)
52
if
c == nil {
53
return
text
54
}
55
style := ansi.Style{}.ForegroundColor(c)
56
return
style.Styled(text)
57
}
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected