Version: v1.6.8 Latest Latest

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0




This section is empty.


This section is empty.


func CalcDays

func CalcDays(start, end int64) int

CalcDays calculates the number of days between two timestamps

func FormatID

func FormatID(id string) string

FormatID formats the ID value

func FormatLastUpdated

func FormatLastUpdated(lastUpdated string) string

FormatLastUpdated formats the last updated value

func FormatMarketCap

func FormatMarketCap(marketCap float64) float64

FormatMarketCap formats the market cap value

func FormatName

func FormatName(name string) string

FormatName formats the name value

func FormatPercentChange

func FormatPercentChange(percentChange float64) float64

FormatPercentChange formats the percent change value

func FormatPrice

func FormatPrice(price float64, convert string) float64

FormatPrice formats the price value

func FormatRank

func FormatRank(rank interface{}) int

FormatRank formats the rank value

func FormatSupply

func FormatSupply(supply float64) float64

FormatSupply formats the supply value

func FormatSymbol

func FormatSymbol(id string) string

FormatSymbol formats the symbol value

func FormatVolume

func FormatVolume(volume float64) float64

FormatVolume formats the volume value

func NameToSlug

func NameToSlug(name string) string

NameToSlug converts a coin name to slug for URLs


This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL