Required docker
, git
Clone this repository
git clone https://github.com/sazarkin/golang-rest-api-example.git && cd golang-rest-api-example
Build docker image
docker build -t github.com/sazarkin/golang-rest-api-example .
Run docker container
docker run --rm -p 8080:8080 github.com/sazarkin/golang-rest-api-example
Test endpoint
http -v :8080/pokemon/charizard