Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.34 KB

README.md

File metadata and controls

33 lines (19 loc) · 1.34 KB

Go Micro-Service Template

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.

References

Structuring Go applications

In order to learn how to approach package design in Go, you can read the following resources:

Once done, this article will help you understand the Design Philosophy On Packaging by William Kennedy .

Exposing Go applications to the Internet

This article describes how you can start approaching

License

This project is under the MIT license. Please see the LICENSE file for more details.