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.
26 lines
501 B
Go
26 lines
501 B
Go
package cointop
|
|
|
|
import log "github.com/sirupsen/logrus"
|
|
|
|
// SelectedCoinName returns the selected coin name
|
|
func (ct *Cointop) SelectedCoinName() string {
|
|
log.Debug("SelectedCoinName()")
|
|
coin := ct.State.selectedCoin
|
|
if coin != nil {
|
|
return coin.Name
|
|
}
|
|
|
|
return ""
|
|
}
|
|
|
|
// SelectedCoinSymbol returns the selected coin symbol
|
|
func (ct *Cointop) SelectedCoinSymbol() string {
|
|
log.Debug("SelectedCoinSymbol()")
|
|
coin := ct.State.selectedCoin
|
|
if coin != nil {
|
|
return coin.Symbol
|
|
}
|
|
|
|
return ""
|
|
}
|