https://github.com/basebandit/gocash
Command line currency converter
https://github.com/basebandit/gocash
currency-converter currency-exchange-rates go-cli go-cli-example golang
Last synced: about 1 month ago
JSON representation
Command line currency converter
- Host: GitHub
- URL: https://github.com/basebandit/gocash
- Owner: basebandit
- License: mit
- Created: 2019-07-28T17:35:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-02T05:55:32.000Z (over 6 years ago)
- Last Synced: 2025-02-22T22:22:02.727Z (about 1 year ago)
- Topics: currency-converter, currency-exchange-rates, go-cli, go-cli-example, golang
- Language: Go
- Size: 87.9 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: change.png
- License: LICENSE
Awesome Lists containing this project
README
gocash
Convert Currency Rates directly from your Terminal!
[](https://goreportcard.com/report/github.com/basebandit/gocash) [](https://github.com/basebandit/gocash/blob/master/LICENSE)

## Install
```
go get -u github.com/basebandit/gocash/cmd/cash
```
Copy the following files to the `.gocash` directory inside your home directory
- [currencies.json](https://github.com/basebandit/gocash/blob/master/currencies.json) file
- [config.json](https://github.com/basebandit/gocash/blob/master/config.json) file
## Usage
> You will need a Fixer.io API key. Get it [here](https://fixer.io/signup/free) for free.
```bash
Usage
$ cash
$ cash
Examples
$ cash 10 usd eur pln aud kes tzs ugx
```
## Available Currencies
See [currencies.json](https://github.com/basebandit/gocash/blob/master/currencies.json) file.
## ToDo:
- Memoization
- Tests
## Thanks:
- [xxczaki](https://twitter.com/dokwadratu) for an awesome [tool](https://github.com/xxczaki/cash-cli), that inspired me to write a similar one in golang.
- [Money.js](http://openexchangerates.github.io/money.js/) for inspiring me to write my own golang version of the same library.
- [Fixer.io](http://fixer.io/) for providing awesome currency conversion API.
-
## License
[MIT](https://opensource.org/licenses/MIT)