Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrHexDoesntStartWithHash contains error message about bad starting value. ErrHexDoesntStartWithHash = errors.New("hex value should start with #") // ErrHexContainsUnexpectedSymbol contains error message about bad hex symbol. ErrHexContainsUnexpectedSymbol = errors.New("hex value contains unexpected symbol") // ErrHexBadValueLen contains error message about bad hex length. ErrHexBadValueLen = fmt.Errorf("hex value len should be %d (including # symbol) if set", hexLen) )
Functions ¶
func ValidateChartElementColor ¶
func ValidateChartElementColor(chartElementColor *render.ChartElementColor) (*render.ChartElementColor, error)
ValidateChartElementColor parses and validates chart element hex color.
func ValidateChartElementColorJSON ¶
func ValidateChartElementColorJSON(color *view.ChartElementColor) (*render.ChartElementColor, error)
ValidateChartElementColorJSON parses and validates chart element hex color JSON representation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.