mirror of https://github.com/miguelmota/cointop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
180 B
Go
12 lines
180 B
Go
6 years ago
|
package cointop
|
||
|
|
||
|
import "github.com/jroimartin/gocui"
|
||
|
|
||
|
// Update update view
|
||
|
func (ct *Cointop) Update(f func()) {
|
||
|
ct.g.Update(func(g *gocui.Gui) error {
|
||
|
f()
|
||
|
return nil
|
||
|
})
|
||
|
}
|