hex

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL