move helper methods to util

This commit is contained in:
Bradley Cicenas
2016-12-25 19:06:57 +00:00
parent 2a09ccc4a6
commit ca9ea17a81
4 changed files with 89 additions and 72 deletions

11
grid.go
View File

@@ -36,17 +36,6 @@ func (g *Grid) Rows() (rows []*ui.Row) {
return rows
}
func mkGauge() *ui.Gauge {
g := ui.NewGauge()
g.Height = 1
g.Border = false
g.Percent = 0
g.PaddingBottom = 0
g.BarColor = ui.ColorGreen
g.Label = "-"
return g
}
func header() *ui.Row {
//cid
c1 := ui.NewPar(" CID")