shahob / fiatconv

Cli currency converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fiatconv

Currency cli utility converter

Uses https://exchangeratesapi.io as data source.

Based on the Clean Architecture approaches.

Uses contexts where it possible.

Arguments

  • amount float
  • src_symbol string
  • dst_symbol string

Example

$ ./fiatconv 123.45 USD RUB
123.45 USD = 7894.12 RUB

Dependencies

Project holds all dependencies in vendor directory.

Testing

This project uses mock framework for testing.

To re-generate all mock files use:

$ go generate ./...

To run all tests:

$ go test -cover -v `go list ./...`

About

Cli currency converter


Languages

Language:Go 100.0%