Skip to content
/ service Public template

A GoLang Microservice Template

License

Notifications You must be signed in to change notification settings

mxttwoods/service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A GoLang Microservice Template

Resources

License

Stars

Watchers

Forks

Packages

No packages published