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.
cointop/vendor/github.com/miguelmota/go-coinmarketcap/example/global_market.go

19 lines
239 B
Go

package main
import (
"fmt"
"log"
cmc "github.com/miguelmota/go-coinmarketcap"
)
func main() {
// Get global market data
marketInfo, err := cmc.GetGlobalMarketData()
if err != nil {
log.Fatal(err)
}
fmt.Println(marketInfo)
}