This is a Go micro-service written from scratch.
It shows how to use net/http, and how to structure a Go project.
Dependency injection is used to insert a logger instance into the handler.
You can also notice how the test is constructed in order to provide testing for the handler.
A Docker container is available, thanks to the Dockerfile. It shows how to construct such containers.
In order to learn how to approach package design in Go, you can read the following resources:
- Style guideline for Go packages - JBD
- Standard Package Layout - Ben Johnson
- Go best practices, six years in - Peter Bourgon
Once done, this article will help you understand the Design Philosophy On Packaging by William Kennedy .
This article describes how you can start approaching
This project is under the MIT license. Please see the LICENSE file for more details.