command
module
Version:
v0.0.0-...-6a00e72
Opens a new window with list of versions in this module.
Published: Aug 5, 2019
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Simple CLI tool to convert currency
Install
Run
go get github.com/ilyakaznacheev/fiatconv
and then call fiatconv -h to get usage instructions
Usage
The tool API is
fiatconv [OPTIONS] [AMOUNT] [SRC] [DST]
Where
Options:
--api-url: Exchange API address (optional)
--proxy: Proxy server path (optional)
Positional parameters:
AMOUNT: decimal amount of source currency;
SRC: ISO currency code of source currency;
DST: ISO currency code of destination currency;
Example
> fiatconv 1 USD RUB
USD 1.00 -> RUB 64.98
> fiatconv 1 USD JPY
USD 1.00 -> JPY 119
Documentation
¶
Package main
fietconv is a simple currency converter using external currency rate base (exchangeratesapi.io).
The tool supports proxy server if you can't reach the exchange API.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.