util

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL