forex

command module
v0.0.0-...-96d6363 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 9 Imported by: 0

README

forex

A cli tool to check the foreign exchange rates against Nepal's currency using Nepal Rastra Bank's API.

Installation

You can install forex by running:

$ go get github.com/aviskarkc10/forex

Make sure your PATH includes the $GOPATH/bin directory so your commands can be easily used:

export PATH=$PATH:$GOPATH/bin

Usage

To view the available commands, run:

$ forex

To view the foreign exchange rates of all the available countries, run:

$ forex list or forex l

To convert a foreign currency to NPR, run:

$ forex convert <amount> <currency>

For example:

# Convert 1 American dollar to NPR
$ forex convert 1 USD or forex c 1 USD
1.00 USD -> 113.34 NPR

# Convert 1 Indian Rupee to NPR
$ forex convert 1 INR or forex c 1 INR
1.00 INR -> 1.60 NPR

LICENSE

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL