tui

package
v0.0.0-...-4538166 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCoin

func AddCoin(nextSlide func()) (title string, content tview.Primitive)

func Cover

func Cover(nextSlide func()) (title string, content tview.Primitive)

Cover returns the cover page.

func FormatMarketCap

func FormatMarketCap(marketCap int) string

func FormatPrice

func FormatPrice(price float64) string

func Portfolio

func Portfolio(nextSlide func()) (title string, content tview.Primitive)

each coin: name, price, amount, value, %1h, %24h, %7d, Price 24, Price 7d

func TopCoinsView

func TopCoinsView(nextSlide func()) (title string, content tview.Primitive)

Types

type FolioCoin

type FolioCoin struct {
	Name       string
	Price      float64
	Amount     float64
	Value      float64
	Percent1H  float64
	Percent24H float64
	Percent7D  float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL