This repo contains code to learn "Build a REST API with Golang".
The code is splitted in two branch to learn little by little.
In the branch #simple_api you can find a simple file in golang.
In the branch #professional_apiyou can find the API with below contains:
- Scaffolding this project as Golang project.
- Use a Makefile to tasks for this project as build, format code, unit tests, integration tests, etc. (Warning: This makefile set Go env as GOPATH...)
- Use a dependency: Gorilla mux instead of standard http router.
- Travis.yml as CI tool.
- Dockerfile to build this API in a container using Docker.
- docker-compose file to use the Dockerfile.