Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CSM ¶
type CSM map[CSN]ColorSheme
CSM - Color Scheme Map - central unit of colormap package
func CSMthemePicker ¶
CSMthemePicker - return Custom Color Sheme Map @see CSM
func GetDefaultCSM ¶
func GetDefaultCSM() (cs CSM)
GetDefaultCSM - return Default Color Sheme Map @see CSM
type CSN ¶
type CSN int // ColorSchemeNumber
CSN - ColorSchemeNumber
const ( CsReset CSN = iota CsInfo // Настройка цветов сообщений (по типу сообщения) CsDebug CsWarning CsTest CsError CsFatalError CsPrint CsDb // Дополнительные цвета для сообщений (хранилище данных) CsDbOk CsDbFail CsRedis CsRedisOk CsRedisFail CsMemchd CsMemchdOk CsMemchdFail CsDatetime // Префикс логера(дата, время, место в коде) ColorschemeNext )
nolint
type SchemeAttributes ¶
type SchemeAttributes int
SchemeAttributes - number of Scheme attr
const ( RepeatColor = "" NewLine = "\n" Tab = "\t" Tab4 = "\t\t\t\t" Tab8 = "\t\t\t\t\t\t\t\t" NLTab8 = "\n\t\t\t\t\t\t\t\t" ClrReset SchemeAttributes = 0 // reset; clears all colors and styles (to white on black) // 0 нормальный режим ClrBold SchemeAttributes = 1 // bold on // 1 жирный ClrItal SchemeAttributes = 3 // italics on // 3 курсив ClrUnder SchemeAttributes = 4 // underline on // 4 подчеркнутый ClrFlashing SchemeAttributes = 5 // flashing // 5 мигающий ClrInverse SchemeAttributes = 7 // inverse on; reverses foreground & background colors // 7 инвертированные цвета ClrInvisible SchemeAttributes = 8 // invisible // 8 невидимый ClrStrike SchemeAttributes = 9 // strikethrough on // 9 зачеркнутый // OFF ATTRIBUTE ClrBoldOff SchemeAttributes = 21 // bold off ClrItalOff SchemeAttributes = 23 // italics off ClrUnderOff SchemeAttributes = 24 // underline off ClrFlashingOff SchemeAttributes = 25 // strikethrough off ClrInversOff SchemeAttributes = 27 // inverse off ClrInvisibleOff SchemeAttributes = 28 // invisible off ClrStrikeOff SchemeAttributes = 29 // strikethrough off // FOREGROUND COLOR //цвет текста ClrFgBlack SchemeAttributes = 30 // set foreground color to black // 30 черный ClrFgRed SchemeAttributes = 31 // set foreground color to red // 31 красный ClrFgGreen SchemeAttributes = 32 // set foreground color to green // 32 зеленый ClrFgYellow SchemeAttributes = 33 // set foreground color to yellow // 33 желтый ClrFgBlue SchemeAttributes = 34 // set foreground color to blue // 34 синий ClrFgMagenta SchemeAttributes = 35 // set foreground color to magenta (purple) // 35 пурпурный ClrFgCyan SchemeAttributes = 36 // set foreground color to cyan // 36 голубой ClrFgWhite SchemeAttributes = 37 // set foreground color to white // 37 белый ClrFgDefault SchemeAttributes = 39 // set foreground color to default (white) // 39 по-умолчанию (белый) // BACKGROUND COLOR // цвет фона ClrBgBlack SchemeAttributes = 40 // set background color to black // 40 черный ClrBgRed SchemeAttributes = 41 // set background color to red // 41 красный ClrBgGreen SchemeAttributes = 42 // set background color to green // 42 зеленый ClrBgYellow SchemeAttributes = 43 // set background color to yellow // 43 желтый ClrBgBlue SchemeAttributes = 44 // set background color to blue // 44 синий ClrBgMagenta SchemeAttributes = 45 // set background color to magenta (purple) // 45 пурпурный ClrBgCyan SchemeAttributes = 46 // set background color to cyan // 46 голубой ClrBgWhite SchemeAttributes = 47 // set background color to white // 47 белый ClrBgDefault SchemeAttributes = 49 // set background color to default (black) // 49 по-умолчанию (черный) )
ON ATTRIBUTE
Click to show internal directories.
Click to hide internal directories.