Skip to content

sansaian/coinconv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COINCONV

Description

Command line utility that converts one currency to another using coinmarketcap as a data source.

Requirements

  • Go 1.18

TODOS

  • more test keys
  • use gomock for tests

Instructions

Build

To run build make sure you have docker installed.

make build

Running Tests

After that use the command:

make test

Start execution

example execution comand.

./coinconv 123.45 USD BTC

Environment variables

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

Resources

URL description
https://coinmarketcap.com/api/v1/#section/Introduction coinmarketcap
https://github.com/evrone/go-clean-template/tree/8fb159d185a8f00c16eed753f15f9bfeb8d67fb9 template

About

Сurrency conversion tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published