Colors and Special Text Effects in Go Logs: Difference between revisions
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
End text effect: <code>\u001B[0m</code>. | End text effect: <code>\u001B[0m</code>. | ||
To combine effects: <code>"\u001B[31m\u001B[1m ..... \u001B[0m"</code>. |
Revision as of 21:10, 5 January 2024
External
- https://www.baeldung.com/java-log-console-in-color
- https://github.com/bit101/go-ansi
- https://codehs.com/tutorial/andy/ansi-colors
Internal
Overview
Text effects:
- Red:
\u001B[31m
- Blue:
\u001B[34m
- Bold:
\u001B[1m
End text effect: \u001B[0m
.
To combine effects: "\u001B[31m\u001B[1m ..... \u001B[0m"
.