Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Icons = struct { BargraphChar rune BargraphRBorder rune BargraphLBorder rune Factory rune Battery rune Package rune Anchor rune Rocket rune Thermometer rune Sun rune Knobs rune Drum rune M rune Plane rune Controller rune Clock rune TrafficLight rune }{ BargraphChar: '|', BargraphLBorder: '[', BargraphRBorder: ']', Factory: '🏭', Battery: '🔋', Package: '📦', Anchor: '⚓', Rocket: '🚀', Thermometer: '🌡', Sun: '☀', Knobs: '🎛', Drum: '🥁', M: 'Ⓜ', Plane: '🛩', Controller: '🛂', Clock: '⏰', TrafficLight: '🚦', } )
Functions ¶
Types ¶
type ColorKeys ¶
ColorKeys represents color gradients mapping of a percentage value (expressed as integer i.e. 20 for 20%) to a color.
func ColorKeysFromSlice ¶
ColorKeysFromSlice automatically builds a color key mapping by equally dividing the slice items into a key value. For instance, []string{"green", "yellow", "red"} returns ColorKeys{33:"green",66:"yellow",100:"red"}
type PanelController ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.