repositorypackage
0.0.0-20250130014933-773e6ca22dd8
Repository: https://github.com/wiyco/go-api-template.git
Documentation: pkg.go.dev
# README
go-api-template
REST API / Fiber starter repository 🐢
Tech Stack
Environments | Languages | Linters | Frameworks | Testing | CI/CD |
---|---|---|---|---|---|
Other
Gin vs Fiber
These articles are very helpful/informative.
- Go Gin vs Fiber: Hello World performance
- Go servers benchmark: Echo, Fiber, and Gin
- Go — Gin vs Fiber vs Echo: How much performance difference is really there for a real-world use case?
Development
VS Code
Enable gopls
to use IntelliSense features.
Linter
First, you need to install golangci-lint
.
Please run the following script according to your environment:
[!TIP]
Make sure that
~/go/bin
is exist inPATH
.
macOS
brew install golangci-lint
Windows & Linux
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v1.63.4
[!IMPORTANT]
For Windows, use Git Bash.
Running the app
Run with Docker to develop with live-reloading (hot-reload).
docker compose up
The API route's root is localhost:8000
.
You can execute the sample API (ping
) at localhost:8000/api/v1/ping
.