Skip to content

mgrigoriev/go-currency-rates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currency Converter

An application in Go for currency conversion using the Central Bank of Russia exchange rates.

How It Works

  • A separate goroutine downloads XML with currency rates every hour and caches them in memory.
  • The HTTP server listens on port 8888 and provides two endpoints:
    • / — usage examples
    • /convert — currency converter

Running the app (two ways)

  1. Wrapper for go run:
    • make run
  2. Building and running a Docker container:
    • make d

Examples of API Requests

Running the tests

make test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors