Colors and Special Text Effects in Go Logs: Difference between revisions

From NovaOrdis Knowledge Base
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

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".