Usage

Use this Repo

mkdir $GOPATH/src/github.com/1-Harshit
cd $GOPATH/src/github.com/1-Harshit
git clone https://github.com/1-Harshit/iitk-coin.git
cd iitk-coin

go run main.go
# or build the program and run the executable
go build
./iitk-coin

Use Docker Image

docker run --rm -p 8080:8080 1harshit/iitk-coin

Expected Output:

2021/07/18 01:03:46 Starting server. Listening on http://localhost:8080

How to use

  1. Run the main.go file this will Listen and Serve on localhost:8080
  2. Use curl to use endpoints as shown there