A simple and efficient currency converter written in Go (Golang) using real-time exchange rates from the ExchangeRate-API.
- Fetches real-time exchange rates for multiple currencies.
- Lightweight and fast CLI tool.
- Easy to use and extend.
currency-converter-go/
├── src/
│ └── main.go
├── examples/
│ └── example.go
├── LICENSE
├── .gitignore
└── README.md
- Go installed on your system.
- Free API key from ExchangeRate-API.
-
Clone the repository:
git clone https://github.com/marwan-ahmed-23/currency-converter-go.git cd currency-converter-go
-
Run the project: Replace
your_api_key_here
with a valid API key.go run src/main.go <API_KEY> <FROM_CURRENCY> <TO_CURRENCY>
-
Example:
go run src/main.go your_api_key_here USD EUR
Output:
1 USD = 0.85 EUR
Contributions are welcome! Feel free to fork the repository and submit a pull request.
If you found this project helpful, please consider giving it a ⭐ on GitHub. Your support means the world to us!