From 63a1a94fe7faeef117c6517f4458b3435ede79ae Mon Sep 17 00:00:00 2001 From: Ivan Marquez Date: Tue, 10 Sep 2019 11:19:41 -0400 Subject: [PATCH] DOC: removes comments from constants Removed comments from constants due that their names are already self descriptive. --- console/palette.go | 49 ++++++++++++++-------------------------------- 1 file changed, 15 insertions(+), 34 deletions(-) diff --git a/console/palette.go b/console/palette.go index df75250..fcd0c98 100644 --- a/console/palette.go +++ b/console/palette.go @@ -7,47 +7,29 @@ import ( ui "github.com/gizak/termui/v3" ) -// Theme is a representation of a theme type Theme string const ( - // ThemeDark represents dark theme - ThemeDark Theme = "dark" - // ThemeLight represents light theme + ThemeDark Theme = "dark" ThemeLight Theme = "light" ) const ( - // ColorOlive represents color olive - ColorOlive ui.Color = 178 - // ColorDeepSkyBlue represents color deepsky blue + ColorOlive ui.Color = 178 ColorDeepSkyBlue ui.Color = 39 - // ColorDeepPink represents color deep pink - ColorDeepPink ui.Color = 198 - // ColorCian represents color cyan - ColorCian ui.Color = 43 - // ColorOrange represents color orange - ColorOrange ui.Color = 166 - // ColorPurple represents color purple - ColorPurple ui.Color = 129 - // ColorGreen represents color green - ColorGreen ui.Color = 64 - // ColorDarkRed represents color dark red - ColorDarkRed ui.Color = 88 - // ColorBlueViolet represents color blue violet - ColorBlueViolet ui.Color = 57 - // ColorDarkGrey represents color dark grey - ColorDarkGrey ui.Color = 238 - // ColorLightGrey represents color light grey - ColorLightGrey ui.Color = 254 - // ColorGrey represents color grey - ColorGrey ui.Color = 242 - // ColorWhite represents color white - ColorWhite ui.Color = 15 - // ColorBlack represents color black - ColorBlack ui.Color = 0 - // ColorClear represents color clear - ColorClear ui.Color = -1 + ColorDeepPink ui.Color = 198 + ColorCian ui.Color = 43 + ColorOrange ui.Color = 166 + ColorPurple ui.Color = 129 + ColorGreen ui.Color = 64 + ColorDarkRed ui.Color = 88 + ColorBlueViolet ui.Color = 57 + ColorDarkGrey ui.Color = 238 + ColorLightGrey ui.Color = 254 + ColorGrey ui.Color = 242 + ColorWhite ui.Color = 15 + ColorBlack ui.Color = 0 + ColorClear ui.Color = -1 ) const ( @@ -57,7 +39,6 @@ const ( menuColorReverseWindows ui.Color = 0 ) -// Palette represents a color palette type Palette struct { ContentColors []ui.Color GradientColors [][]ui.Color