Gin starter repository.
First, you need to install golangci-lint
.
Please run the following script according to your environment:
Tip
Make sure that ~/go/bin
is exist in PATH
.
brew install golangci-lint
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v1.60.3
Important
For Windows, use Git Bash.
Run with Docker to develop with live-reloading (hot-reload).
docker compose up
API route is localhost:8080
as the root.
1. air
Used for live-reloading (hot-reload) development.
2. godotenv
Environment variables library such as dotenv (e.g. .env
).
3. gorm
ORM library.
4. uuid
Used to generate UUIDs.