Gin template

A RESTful API service built with gin.

Developement

Prerequisite

Name Version
GNU make 4.2.1
go 1.17

Environment setup

  1. Initialize environment variable
cp env-sample .env
  1. Download required packages
make init
  1. Start development API service
make run
  1. (Optional) Create binary executable output
make build

Formatting

This project use gofmt for formatting

make format

GitHub

View Github