Documentation ¶
Overview ¶
Package utils provide utility functions that helps development across the project.
Index ¶
- Constants
- func FillColor(value float64) string
- func Hash(s string) string
- func HexVal(str string, index, length int) float64
- func Map(value, aMin, aMax, bMin, bMax float64) float64
- func Merge(mapA map[string]interface{}, mapB map[string]interface{}) map[string]interface{}
- func Opacity(value float64) float64
Constants ¶
View Source
const ( BaseColor string = "#9e2c7b" StrokeColor string = "#000" StrokeOpacity float64 = 0.02 FillColorDark string = "#222" FillColorLight string = "#ddd" OpacityMin float64 = 0.02 OpacityMax float64 = 0.15 )
constants representing stroke, fill's opacity and color, base color, minimum and maximum opacity value
Variables ¶
This section is empty.
Functions ¶
func HexVal ¶ added in v1.4.0
HexVal returns decimal representation of a substring of a hexa decimal string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.