This is a simple tutorial on how to structure a golang RestFul API structure. It also provides a wrapper around the Gin web framework to easily create and manage an HTTP server with route registration and reusable components.
- Start and stop the HTTP server gracefully.
- Register individual routes.
- Register grouped routes with middleware support.
- Example Endpoint to register and retrieve users details.
You need to install the following
- Golang
- Postgress Database In a production environment, do not forget to include a gitignore file.