Command line utility that converts one currency to another using coinmarketcap as a data source.
- Go 1.18
- more test keys
- use gomock for tests
To run build make sure you have docker installed.
make build
After that use the command:
make test
example execution comand.
./coinconv 123.45 USD BTC
env variable name | description | default |
---|---|---|
LOGGER_LEVEL | Logging level for logrus framework. | info |
TIMEOUT | request timeout. | 5s |
URL | url for request data. | none |
TOKEN | token for coinmarketcap. | none |
URL | description |
---|---|
https://coinmarketcap.com/api/v1/#section/Introduction | coinmarketcap |
https://github.com/evrone/go-clean-template/tree/8fb159d185a8f00c16eed753f15f9bfeb8d67fb9 | template |