lowercase

Former-commit-id: eedf2b123f6dfbf6ced05e346584fc76d69bdf7b [formerly eedf2b123f6dfbf6ced05e346584fc76d69bdf7b [formerly 198acfa3b2f78062ae8229db2e9534dbe5693d70 [formerly 6b3cf0bcc32514ee16a8f6681261b5df7a0aee52]]]
Former-commit-id: a51cf7240a41cffac8d068a2117aa483e47c9579
Former-commit-id: f4458f5e853c2de791e42136e08a80359d4630ee [formerly 4d2376c81b1b219eef964b13efd3592d91327de7]
Former-commit-id: 500ca97588612b0f51511398398c1e42b89c19bd
pull/15/head
Miguel Mota 6 years ago
parent 5476f2f249
commit 24dda9fb61

@ -11,7 +11,7 @@ import (
var oneWeek = (time.Hour * 24) * 7
func (ct *Cointop) updateChart() error {
maxX := ct.Width()
maxX := ct.width()
if maxX > ct.maxtablewidth {
maxX = ct.maxtablewidth
}

@ -7,7 +7,7 @@ import (
)
func (ct *Cointop) layout(g *gocui.Gui) error {
maxX, maxY := ct.Size()
maxX, maxY := ct.size()
chartHeight := 10
topOffset := 0

@ -9,7 +9,7 @@ import (
)
func (ct *Cointop) updateMarketbar() error {
maxX := ct.Width()
maxX := ct.width()
market, err := ct.api.GetGlobalMarketData()
if err != nil {
return err

@ -1,18 +1,18 @@
package cointop
// Size returns window width and height
func (ct *Cointop) Size() (int, int) {
func (ct *Cointop) size() (int, int) {
return ct.g.Size()
}
// Width returns window width
func (ct *Cointop) Width() int {
w, _ := ct.Size()
func (ct *Cointop) width() int {
w, _ := ct.size()
return w
}
// Height returns window height
func (ct *Cointop) Height() int {
_, h := ct.Size()
func (ct *Cointop) height() int {
_, h := ct.size()
return h
}

@ -13,7 +13,7 @@ import (
)
func (ct *Cointop) refreshTable() error {
maxX := ct.Width()
maxX := ct.width()
ct.table = table.New().SetWidth(maxX)
ct.table.AddCol("")
ct.table.AddCol("")

Loading…
Cancel
Save