Registry / web-framework / gin-gonic-gin

gin-gonic-gin

JSON →
library1.12.0gogo✓ verified 31d ago

Package gin implements a HTTP web framework called gin.

go get github.com/gin-gonic/gin
INSTALL
IMPORT
SIG · GIN-GONIC-GIN
G
gin-gonic-gin
web-frameworkgov1.12.0
Install
15.3s avg
Import
—
Disk
1MB
Pass rate
6/ 6
Env Coverage6 / 6
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against vv1.12.0 · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
golang 1.21–1.233 runs
installs and imports cleanly · install 14.7s · import 0.000s · 1.3MB
default
golang 1.21–1.233 runs
installs and imports cleanly · install 15.9s · import 0.000s · 1.3MB
1MB installed
● package 1MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gin
✓ github.com/gin-gonic/gin

Create a simple HTTP server with a /ping endpoint

package main import ( "net/http" "github.com/gin-gonic/gin" ) func main() { r := gin.Default() r.GET("/ping", func(c *gin.Context) { c.JSON(http.StatusOK, gin.H{"message": "pong"}) }) r.Run() }
Debug
Known issues
gotchaGin uses a custom binding and validation; be aware of struct tag requirements
fix
Use `binding:"required"` tags for request validation
affects: >=1.0.0
Upgrade
Version history
1.12.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
gin-gonic-gin — go get gin-gonic-gin · libregistry