Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 544 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 544 Bytes

Golang command line script that fetches currency exchange rate data from the http://fixer.io/ JSON API

  • Go has to be properly installed on your machine for this to work (https://golang.org/doc/install)

  • Run the currency.go file from the /src folder of your $GOPATH like this:

    go run currency.go USD

  • USD would be US Dollar as the base for the exchange rate, it can also be one of the following: AUD, CAD, CHF, EUR, NZD, RUB, JPY

The script command line output looks like this:

Alt text