gin

(★ 89,095)

Gin is a high-performance HTTP web framework written in Go. It provides a Martini-like API but with significantly better performance—up to 40 times faster—thanks to httprouter. Gin is designed for building REST APIs, web applications, and microservices.

  • .gitignore
  • .golangci.yml
  • .goreleaser.yaml
  • auth.go
  • auth_test.go
  • BENCHMARKS.md
  • benchmarks_test.go
  • CHANGELOG.md
  • CODE_OF_CONDUCT.md
  • codecov.yml
  • context.go
  • context_appengine.go
  • context_file_test.go
  • context_test.go
  • CONTRIBUTING.md
  • debug.go
  • debug_test.go
  • deprecated.go
  • deprecated_test.go
  • doc.go
  • errors.go
  • errors_test.go
  • fs.go
  • fs_test.go
  • gin.go
  • gin_integration_test.go
  • gin_test.go
  • githubapi_test.go
  • go.mod
  • go.sum
  • LICENSE
  • logger.go
  • logger_test.go
  • Makefile
  • middleware_test.go
  • mode.go
  • mode_test.go
  • path.go
  • path_test.go
  • README.md
  • recovery.go
  • recovery_test.go
  • response_writer.go
  • response_writer_test.go
  • routergroup.go
  • routergroup_test.go
  • routes_test.go
  • test_helpers.go
  • tree.go
  • tree_test.go
  • utils.go
  • utils_test.go
  • version.go

# Installation Guide

1. Get the code
git clone https://github.com/gin-gonic/gin

Downloads the entire project code from GitHub to your computer.

cd gin

Moves into the project folder you just downloaded.

2. Go

Medium Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Go The Go compiler and toolchain.
go run main.go

Runs the Go program directly without a separate build step.

If the build finishes without errors, it worked. If you used go run ., check the terminal output.

Pulled directly from this repo's README.

3. Make

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make

Compiles the code based on the generated build configuration to produce an executable.

If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation