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.
24 lines
464 B
Go
24 lines
464 B
Go
package cointop
|
|
|
|
// SelectedCoinName returns the selected coin name
|
|
func (ct *Cointop) SelectedCoinName() string {
|
|
ct.debuglog("selectedCoinName()")
|
|
coin := ct.State.selectedCoin
|
|
if coin != nil {
|
|
return coin.Name
|
|
}
|
|
|
|
return ""
|
|
}
|
|
|
|
// SelectedCoinSymbol returns the selected coin symbol
|
|
func (ct *Cointop) SelectedCoinSymbol() string {
|
|
ct.debuglog("selectedCoinSymbol()")
|
|
coin := ct.State.selectedCoin
|
|
if coin != nil {
|
|
return coin.Symbol
|
|
}
|
|
|
|
return ""
|
|
}
|