This is my humble version of how to structure a GO application.
Link to my article (currently only in spanish) about "How to structure a Go Application".
In order to demonstrate my idea with a simple example application, I created this API which handles messages.
The example uses the following frameworks:
Clone the repository and execute the following command on the root folder
go run main.go
go test ./...
This is a work in progress. There's still a lot of work to do. PRs are welcome :)
- Add (a LOT) of unit tests
- Use
Context
type to pass parameters across different layers - Add an example of database handler module