afshintalebi / go-gin-starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Gin Starter

This is a starter boilerplate for the Gin framework in the Go programming language. This boilerplate serves as a foundational template for developing web applications using the Gin framework. It includes essential configurations, folder structures, and often-used components, providing developers with a kickstart for their Gin-based projects. With this boilerplate, you can quickly begin building web applications with Gin, saving you time and effort on initial setup and configuration tasks.

Features

Running the App

We utilize wgo for seamless live reload support.

To initiate live reloading, simply run the wgo run main.go command from the root directory of your project.

Handle Errors

For personalized error responses, consult the examples within the /api/errors-example.go path to gain insights and guidance.

Additionally, for server-related errors, it's advisable to utilize the panic function to properly signal and manage the issue.

CORS

For a comprehensive exploration of CORS configuration options, refer to the documentation.

Tasks

  • Integrate Viper
  • Docker
  • Tests

About


Languages

Language:Go 98.6%Language:Dockerfile 1.4%