Comment cleanups for pkg/termui

pull/191/head
Simon Roberts 3 years ago
parent e20795e1ab
commit aa2e72a20e
No known key found for this signature in database
GPG Key ID: 0F30F99E6B771FD4

@ -31,7 +31,7 @@ const (
ColorWhite
)
//Have a constant that defines number of colors
// NumberOfColors ...
const NumberOfColors = 8
// Text style

@ -39,8 +39,8 @@ type Sparklines struct {
var sparks = []rune{'▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'}
// Add appends a given Sparkline to s *Sparklines.
func (s *Sparklines) Add(sl Sparkline) {
s.Lines = append(s.Lines, sl)
func (sl *Sparklines) Add(line Sparkline) {
sl.Lines = append(sl.Lines, line)
}
// NewSparkline returns a unrenderable single sparkline that intended to be added into Sparklines.

@ -121,7 +121,7 @@ func lookUpAttr(clrmap map[string]Attribute, name string) Attribute {
return a
}
// 0<=r,g,b <= 5
// ColorRGB return an Attribute for the given RGB (value 0-5)
func ColorRGB(r, g, b int) Attribute {
within := func(n int) int {
if n < 0 {

@ -9,7 +9,7 @@ import (
"sync"
)
// event mixins
// WgtMgr event mixins
type WgtMgr map[string]WgtInfo
type WgtInfo struct {

Loading…
Cancel
Save