mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Changed naming Convention
This commit is contained in:
@@ -39,11 +39,11 @@ func (t *Ticker) PriceToString(cryptoCurrency, fiatCurrency, priceType string) s
|
||||
}
|
||||
}
|
||||
|
||||
func AddTickerPrice(m map[string]map[string]TickerPrice, cyrptocurrency, fiatcurrency string, price TickerPrice) {
|
||||
mm, ok := m[cyrptocurrency]
|
||||
func AddTickerPrice(m map[string]map[string]TickerPrice, cryptocurrency, fiatcurrency string, price TickerPrice) {
|
||||
mm, ok := m[cryptocurrency]
|
||||
if !ok {
|
||||
mm = make(map[string]TickerPrice)
|
||||
m[cyrptocurrency] = mm
|
||||
m[cryptocurrency] = mm
|
||||
}
|
||||
mm[fiatcurrency] = price
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user