Gin-Gonic is a framework based on httprouter. It's an HTTP multiplexer like gorilla/mux, but it is more fast. Gin allows a high-level API to create REST services.
This structure is based on Standard Go Project Layout, but there is a few diferences in your composition.
- cmd: don't put a lot of code in the application directory. It resposability is initialize the application environments and IoC´s.
- controllers: put any code related to public endpoints.
- core:
- db:
- middleawares:
- server:
- utils:
This packages are using in this projects.
Packages | Reference |
---|---|
Go | [go.dev/][PlDb] |
Gin | [github.com/gin-gonic/gin#readme][PlGh] |
TODO...
TODO...