Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0xmohit/CoinPrices
/ functions
Functions
12 in github.com/0xmohit/CoinPrices
⨍
Functions
12
◇
Types & classes
3
↓ 5 callers
Function
bold
(s string)
coindata.go:144
↓ 5 callers
Function
getValue
(i interface{})
coindata.go:66
↓ 2 callers
Function
colorize
colorize returns a string with ANSI escape sequences. If the input begins with a negative sign, the string is formatted in red else green.
coindata.go:133
↓ 2 callers
Function
listCurrencies
listCurrencies returns the list of valid currencies for coversion.
coindata.go:126
↓ 1 callers
Method
UnmarshalJson
(data []byte)
coindata.go:44
↓ 1 callers
Function
fetchPrices
fetchPrices obtains the price data using the CoinMarketCap API.
coindata.go:74
↓ 1 callers
Function
human
human returns a string form of the given number in base 10 with commas after every three orders of magnitude.
coindata.go:150
↓ 1 callers
Function
isValidCurrency
isValidCurrency determines if the specified currency is valid. It ignores the case while performing the comparison.
coindata.go:116
↓ 1 callers
Function
printData
(d allCoinData)
coindata.go:88
Function
Test
(t *testing.T)
main_test.go:5
Function
init
()
main.go:29
Function
main
()
main.go:33