Documentation
¶
Overview ¶
Package colour implements basic text colouring for msg's limited needs.
In particular, it's not expected to provide every ANSI code, just the ones we need. The codes have also been padded so that they are the same length, which means text/tabwriter will correctly calculate alignment as long as styles are not mixed within a table cell.
The functions in this package respect both $NO_COLOR and $FORCE_COLOR.
Index ¶
Constants ¶
View Source
const ( CodeError = "\x1b[1;0031m" // Bold red, used for the error status CodeTitle = "\x1b[1;0096m" // Bold hi cyan, used for titles CodeInfo = "\x1b[1;0036m" // Bold cyan, used for info CodeWarn = "\x1b[1;0033m" // Bold yellow, used for warn CodeSuccess = "\x1b[1;0032m" // Bold geen, used for success CodeReset = "\x1b[000000m" // Reset all attributes )
ANSI codes for coloured output, they are all the same length so as not to throw off alignment of text/tabwriter.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.