Skip to content

Go Application that accepts the currency code and returns the name of the currency and the country of the currency

Notifications You must be signed in to change notification settings

ryananyangu/currencyapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

currencyapp

Running application

  1. Test environment with go compiler
    a) navigate to root directory where main.go file exists.
    b) run command below either command
go run .

or

go run main.go
  1. Production environment executable file (Linux env)
    a) While in the project root directory
    b) Run command below
go build -o bin/currencyapp

A binary executable file will be created in directory path bin/
To execute the binary file in the created bin directory

./currencyapp

Application commands

  1. reload -> Application to fetch and update the list of currency codes while already running
  2. exit -> application exiting gracefully
  3. help -> displays instructions for using the application
  4. Application accepts multi input currency code search as long the codes are comma separated

Application structure

  1. main.go contains the application specific functionality
  2. models.go contains data object definations and validations
  3. utilities.go contains reusable fucntinality across other code bases

About

Go Application that accepts the currency code and returns the name of the currency and the country of the currency

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages