We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1da45c7 commit d64a8e4Copy full SHA for d64a8e4
README.md
@@ -92,6 +92,21 @@ cfmt.Println("This is a {{red color}}::code|bold")
92
93

94
95
+Also you can do whatever you want with the text, which is styled.
96
+
97
+```go
98
+cfmt.RegisterStyle("flag", func(s string) string {
99
+ return cfmt.Sprintf("{{--%s}}::green (-%c)", s, s[0])
100
+})
101
+```
102
103
104
+flag := "help"
105
+cfmt.Println("{{%s}}::flag ", flag)
106
107
108
+
109
110
### HEX colors
111
112
If the standard colors are not enough for you, then you can use the colors in the Hex format (note, not all consoles support all colors fully!).
0 commit comments