An open API service indexing awesome lists of open source software.

https://github.com/frani/go-gin-api

🐭 Boilerplate of Go Gin API or that's what I tried.
https://github.com/frani/go-gin-api

api gin-gonic go golang

Last synced: 3 months ago
JSON representation

🐭 Boilerplate of Go Gin API or that's what I tried.

Awesome Lists containing this project

README

          

# Go GIN API with Mongo

Boilerplate microservice API with GIN

# Folder structure

| Folder & Files | Description |
| --------------------------------- | ------------------------------------------------------------------------------------- |
| /src/routers | AKA endpoints |
| /src/routers/users | router folder example |
| /src/routers/users/handler.go | Handler functions |
| /src/routers/users/router.go | Router |
| /src/routers/users/validations.go | Endpoint Request Validations |
| /src/middlewares | Custom Middlewares |
| /src/services | Business logic, including internal or external services such as SDK (service layer) |
| /src/configs | Environment variables and configuration-related things |