Skip to content

gostudent/coindesk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coindesk

CoinDesk Travis Branch OpenCode

coindesk is a Go package to access Coindesk API

Documentation:

GoDoc

Installations & Usage

Installation

go get github.com/gostudent/coindesk

Usage

package main

import (
	"fmt"
	"github.com/gostudent/coindesk"
)

func main() {
	priceUsd := coindesk.GetPrice()
	fmt.Println(priceUsd)

	priceInr := coindesk.GetPrice("INR")
	fmt.Println(priceInr)

	USD, GBP, EUR := coindesk.CurrentPrice()
	fmt.Println(USD, GBP, EUR)
}

Releases

No releases published

Packages

No packages published

Languages