[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-360":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},360,"gin","gin-gonic\u002Fgin","gin-gonic","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.","https:\u002F\u002Fgin-gonic.com\u002F",null,"Go",88695,8638,1355,603,0,7,41,200,31,114,"MIT License",false,"master",[26,5,27,28,29,30,31],"framework","go","middleware","performance","router","server","2026-06-17 04:00:02","# Gin Web Framework\n\n\u003Cimg align=\"right\" width=\"159px\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fgin-gonic\u002Flogo\u002Fmaster\u002Fcolor.png\">\n\n[![Build Status](https:\u002F\u002Fgithub.com\u002Fgin-gonic\u002Fgin\u002Factions\u002Fworkflows\u002Fgin.yml\u002Fbadge.svg?branch=master)](https:\u002F\u002Fgithub.com\u002Fgin-gonic\u002Fgin\u002Factions\u002Fworkflows\u002Fgin.yml)\n[![Trivy Security Scan](https:\u002F\u002Fgithub.com\u002Fgin-gonic\u002Fgin\u002Factions\u002Fworkflows\u002Ftrivy-scan.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fgin-gonic\u002Fgin\u002Factions\u002Fworkflows\u002Ftrivy-scan.yml)\n[![codecov](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fgin-gonic\u002Fgin\u002Fbranch\u002Fmaster\u002Fgraph\u002Fbadge.svg)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fgin-gonic\u002Fgin)\n[![Go Report Card](https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002Fgin-gonic\u002Fgin)](https:\u002F\u002Fgoreportcard.com\u002Freport\u002Fgithub.com\u002Fgin-gonic\u002Fgin)\n[![Go Reference](https:\u002F\u002Fpkg.go.dev\u002Fbadge\u002Fgithub.com\u002Fgin-gonic\u002Fgin?status.svg)](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgin-gonic\u002Fgin?tab=doc)\n[![Sourcegraph](https:\u002F\u002Fsourcegraph.com\u002Fgithub.com\u002Fgin-gonic\u002Fgin\u002F-\u002Fbadge.svg)](https:\u002F\u002Fsourcegraph.com\u002Fgithub.com\u002Fgin-gonic\u002Fgin?badge)\n[![Open Source Helpers](https:\u002F\u002Fwww.codetriage.com\u002Fgin-gonic\u002Fgin\u002Fbadges\u002Fusers.svg)](https:\u002F\u002Fwww.codetriage.com\u002Fgin-gonic\u002Fgin)\n[![Release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Frelease\u002Fgin-gonic\u002Fgin.svg?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fgin-gonic\u002Fgin\u002Freleases)\n\n## 📰 Gin 1.12.0 is now available!\n\nWe're excited to announce the release of **[Gin 1.12.0](https:\u002F\u002Fgin-gonic.com\u002Fen\u002Fblog\u002Fnews\u002Fgin-1-12-0-release-announcement\u002F)**! This release brings new features, performance improvements, and important bug fixes. Check out the [release announcement](https:\u002F\u002Fgin-gonic.com\u002Fen\u002Fblog\u002Fnews\u002Fgin-1-12-0-release-announcement\u002F) on our official blog for the full details.\n\n---\n\nGin is a high-performance HTTP web framework written in [Go](https:\u002F\u002Fgo.dev\u002F). It provides a Martini-like API but with significantly better performance—up to 40 times faster—thanks to [httprouter](https:\u002F\u002Fgithub.com\u002Fjulienschmidt\u002Fhttprouter). Gin is designed for building REST APIs, web applications, and microservices where speed and developer productivity are essential.\n\n**Why choose Gin?**\n\nGin combines the simplicity of Express.js-style routing with Go's performance characteristics, making it ideal for:\n\n- Building high-throughput REST APIs\n- Developing microservices that need to handle many concurrent requests\n- Creating web applications that require fast response times\n- Prototyping web services quickly with minimal boilerplate\n\n**Gin's key features:**\n\n- **Zero allocation router** - Extremely memory-efficient routing with no heap allocations\n- **High performance** - Benchmarks show superior speed compared to other Go web frameworks\n- **Middleware support** - Extensible middleware system for authentication, logging, CORS, etc.\n- **Crash-free** - Built-in recovery middleware prevents panics from crashing your server\n- **JSON validation** - Automatic request\u002Fresponse JSON binding and validation\n- **Route grouping** - Organize related routes and apply common middleware\n- **Error management** - Centralized error handling and logging\n- **Built-in rendering** - Support for JSON, XML, HTML templates, and more\n- **Extensible** - Large ecosystem of community middleware and plugins\n\n## Getting Started\n\n### Prerequisites\n\n- **Go version**: Gin requires [Go](https:\u002F\u002Fgo.dev\u002F) version [1.25](https:\u002F\u002Fgo.dev\u002Fdoc\u002Fdevel\u002Frelease#go1.25.0) or above\n- **Basic Go knowledge**: Familiarity with Go syntax and package management is helpful\n\n### Installation\n\nWith [Go's module support](https:\u002F\u002Fgo.dev\u002Fwiki\u002FModules#how-to-use-modules), simply import Gin in your code and Go will automatically fetch it during build:\n\n```go\nimport \"github.com\u002Fgin-gonic\u002Fgin\"\n```\n\n### Your First Gin Application\n\nHere's a complete example that demonstrates Gin's simplicity:\n\n```go\npackage main\n\nimport (\n  \"log\"\n  \"net\u002Fhttp\"\n\n  \"github.com\u002Fgin-gonic\u002Fgin\"\n)\n\nfunc main() {\n  \u002F\u002F Create a Gin router with default middleware (logger and recovery)\n  r := gin.Default()\n\n  \u002F\u002F Define a simple GET endpoint\n  r.GET(\"\u002Fping\", func(c *gin.Context) {\n    \u002F\u002F Return JSON response\n    c.JSON(http.StatusOK, gin.H{\n      \"message\": \"pong\",\n    })\n  })\n\n  \u002F\u002F Start server on port 8080 (default)\n  \u002F\u002F Server will listen on 0.0.0.0:8080 (localhost:8080 on Windows)\n  if err := r.Run(); err != nil {\n    log.Fatalf(\"failed to run server: %v\", err)\n  }\n}\n```\n\n**Running the application:**\n\n1. Save the code above as `main.go`\n2. Run the application:\n\n   ```sh\n   go run main.go\n   ```\n\n3. Open your browser and visit [`http:\u002F\u002Flocalhost:8080\u002Fping`](http:\u002F\u002Flocalhost:8080\u002Fping)\n4. You should see: `{\"message\":\"pong\"}`\n\n**What this example demonstrates:**\n\n- Creating a Gin router with default middleware\n- Defining HTTP endpoints with simple handler functions\n- Returning JSON responses\n- Starting an HTTP server\n\n### Next Steps\n\nAfter running your first Gin application, explore these resources to learn more:\n\n#### 📚 Learning Resources\n\n- **[Gin Quick Start Guide](docs\u002Fdoc.md)** - Comprehensive tutorial with API examples and build configurations\n- **[Example Repository](https:\u002F\u002Fgithub.com\u002Fgin-gonic\u002Fexamples)** - Ready-to-run examples demonstrating various Gin use cases:\n  - REST API development\n  - Authentication & middleware\n  - File uploads and downloads\n  - WebSocket connections\n  - Template rendering\n\n## 📖 Documentation\n\n### API Reference\n\n- **[Go.dev API Documentation](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgin-gonic\u002Fgin)** - Complete API reference with examples\n\n### User Guides\n\nThe comprehensive documentation is available on [gin-gonic.com](https:\u002F\u002Fgin-gonic.com) in multiple languages:\n\n- [English](https:\u002F\u002Fgin-gonic.com\u002Fen\u002Fdocs\u002F) | [简体中文](https:\u002F\u002Fgin-gonic.com\u002Fzh-cn\u002Fdocs\u002F) | [繁體中文](https:\u002F\u002Fgin-gonic.com\u002Fzh-tw\u002Fdocs\u002F)\n- [日本語](https:\u002F\u002Fgin-gonic.com\u002Fja\u002Fdocs\u002F) | [한국어](https:\u002F\u002Fgin-gonic.com\u002Fko-kr\u002Fdocs\u002F) | [Español](https:\u002F\u002Fgin-gonic.com\u002Fes\u002Fdocs\u002F)\n- [Turkish](https:\u002F\u002Fgin-gonic.com\u002Ftr\u002Fdocs\u002F) | [Persian](https:\u002F\u002Fgin-gonic.com\u002Ffa\u002Fdocs\u002F) | [Português](https:\u002F\u002Fgin-gonic.com\u002Fpt\u002Fdocs\u002F)\n- [Russian](https:\u002F\u002Fgin-gonic.com\u002Fru\u002Fdocs\u002F) | [Indonesian](https:\u002F\u002Fgin-gonic.com\u002Fid\u002Fdocs\u002F)\n\n### Official Tutorials\n\n- [Go.dev Tutorial: Developing a RESTful API with Go and Gin](https:\u002F\u002Fgo.dev\u002Fdoc\u002Ftutorial\u002Fweb-service-gin)\n\n## ⚡ Performance Benchmarks\n\nGin demonstrates exceptional performance compared to other Go web frameworks. It uses a custom version of [HttpRouter](https:\u002F\u002Fgithub.com\u002Fjulienschmidt\u002Fhttprouter) for maximum efficiency. [View detailed benchmarks →](\u002FBENCHMARKS.md)\n\n**Gin vs. Other Go Frameworks** (GitHub API routing benchmark):\n\n| Benchmark name                 |       (1) |             (2) |          (3) |             (4) |\n| ------------------------------ | --------: | --------------: | -----------: | --------------: |\n| BenchmarkGin_GithubAll         | **43550** | **27364 ns\u002Fop** |   **0 B\u002Fop** | **0 allocs\u002Fop** |\n| BenchmarkAce_GithubAll         |     40543 |     29670 ns\u002Fop |       0 B\u002Fop |     0 allocs\u002Fop |\n| BenchmarkAero_GithubAll        |     57632 |     20648 ns\u002Fop |       0 B\u002Fop |     0 allocs\u002Fop |\n| BenchmarkBear_GithubAll        |      9234 |    216179 ns\u002Fop |   86448 B\u002Fop |   943 allocs\u002Fop |\n| BenchmarkBeego_GithubAll       |      7407 |    243496 ns\u002Fop |   71456 B\u002Fop |   609 allocs\u002Fop |\n| BenchmarkBone_GithubAll        |       420 |   2922835 ns\u002Fop |  720160 B\u002Fop |  8620 allocs\u002Fop |\n| BenchmarkChi_GithubAll         |      7620 |    238331 ns\u002Fop |   87696 B\u002Fop |   609 allocs\u002Fop |\n| BenchmarkDenco_GithubAll       |     18355 |     64494 ns\u002Fop |   20224 B\u002Fop |   167 allocs\u002Fop |\n| BenchmarkEcho_GithubAll        |     31251 |     38479 ns\u002Fop |       0 B\u002Fop |     0 allocs\u002Fop |\n| BenchmarkGocraftWeb_GithubAll  |      4117 |    300062 ns\u002Fop |  131656 B\u002Fop |  1686 allocs\u002Fop |\n| BenchmarkGoji_GithubAll        |      3274 |    416158 ns\u002Fop |   56112 B\u002Fop |   334 allocs\u002Fop |\n| BenchmarkGojiv2_GithubAll      |      1402 |    870518 ns\u002Fop |  352720 B\u002Fop |  4321 allocs\u002Fop |\n| BenchmarkGoJsonRest_GithubAll  |      2976 |    401507 ns\u002Fop |  134371 B\u002Fop |  2737 allocs\u002Fop |\n| BenchmarkGoRestful_GithubAll   |       410 |   2913158 ns\u002Fop |  910144 B\u002Fop |  2938 allocs\u002Fop |\n| BenchmarkGorillaMux_GithubAll  |       346 |   3384987 ns\u002Fop |  251650 B\u002Fop |  1994 allocs\u002Fop |\n| BenchmarkGowwwRouter_GithubAll |     10000 |    143025 ns\u002Fop |   72144 B\u002Fop |   501 allocs\u002Fop |\n| BenchmarkHttpRouter_GithubAll  |     55938 |     21360 ns\u002Fop |       0 B\u002Fop |     0 allocs\u002Fop |\n| BenchmarkHttpTreeMux_GithubAll |     10000 |    153944 ns\u002Fop |   65856 B\u002Fop |   671 allocs\u002Fop |\n| BenchmarkKocha_GithubAll       |     10000 |    106315 ns\u002Fop |   23304 B\u002Fop |   843 allocs\u002Fop |\n| BenchmarkLARS_GithubAll        |     47779 |     25084 ns\u002Fop |       0 B\u002Fop |     0 allocs\u002Fop |\n| BenchmarkMacaron_GithubAll     |      3266 |    371907 ns\u002Fop |  149409 B\u002Fop |  1624 allocs\u002Fop |\n| BenchmarkMartini_GithubAll     |       331 |   3444706 ns\u002Fop |  226551 B\u002Fop |  2325 allocs\u002Fop |\n| BenchmarkPat_GithubAll         |       273 |   4381818 ns\u002Fop | 1483152 B\u002Fop | 26963 allocs\u002Fop |\n| BenchmarkPossum_GithubAll      |     10000 |    164367 ns\u002Fop |   84448 B\u002Fop |   609 allocs\u002Fop |\n| BenchmarkR2router_GithubAll    |     10000 |    160220 ns\u002Fop |   77328 B\u002Fop |   979 allocs\u002Fop |\n| BenchmarkRivet_GithubAll       |     14625 |     82453 ns\u002Fop |   16272 B\u002Fop |   167 allocs\u002Fop |\n| BenchmarkTango_GithubAll       |      6255 |    279611 ns\u002Fop |   63826 B\u002Fop |  1618 allocs\u002Fop |\n| BenchmarkTigerTonic_GithubAll  |      2008 |    687874 ns\u002Fop |  193856 B\u002Fop |  4474 allocs\u002Fop |\n| BenchmarkTraffic_GithubAll     |       355 |   3478508 ns\u002Fop |  820744 B\u002Fop | 14114 allocs\u002Fop |\n| BenchmarkVulcan_GithubAll      |      6885 |    193333 ns\u002Fop |   19894 B\u002Fop |   609 allocs\u002Fop |\n\n- (1): Total Repetitions achieved in constant time, higher means more confident result\n- (2): Single Repetition Duration (ns\u002Fop), lower is better\n- (3): Heap Memory (B\u002Fop), lower is better\n- (4): Average Allocations per Repetition (allocs\u002Fop), lower is better\n\n## 🔌 Middleware Ecosystem\n\nGin has a rich ecosystem of middleware for common web development needs. Explore community-contributed middleware:\n\n- **[gin-contrib](https:\u002F\u002Fgithub.com\u002Fgin-contrib)** - Official middleware collection including:\n  - Authentication (JWT, Basic Auth, Sessions)\n  - CORS, Rate limiting, Compression\n  - Logging, Metrics, Tracing\n  - Static file serving, Template engines\n- **[gin-gonic\u002Fcontrib](https:\u002F\u002Fgithub.com\u002Fgin-gonic\u002Fcontrib)** - Additional community middleware\n\n## 🏢 Production Usage\n\nGin powers many high-traffic applications and services in production:\n\n- **[gorush](https:\u002F\u002Fgithub.com\u002Fappleboy\u002Fgorush)** - High-performance push notification server\n- **[fnproject](https:\u002F\u002Fgithub.com\u002Ffnproject\u002Ffn)** - Container-native, serverless platform\n- **[photoprism](https:\u002F\u002Fgithub.com\u002Fphotoprism\u002Fphotoprism)** - AI-powered personal photo management\n- **[lura](https:\u002F\u002Fgithub.com\u002Fluraproject\u002Flura)** - Ultra-performant API Gateway framework\n- **[picfit](https:\u002F\u002Fgithub.com\u002Fthoas\u002Fpicfit)** - Real-time image processing server\n- **[dkron](https:\u002F\u002Fgithub.com\u002Fdistribworks\u002Fdkron)** - Distributed job scheduling system\n\n## 🤝 Contributing\n\nGin is the work of hundreds of contributors from around the world. We welcome and appreciate your contributions! See the full list of [contributors](https:\u002F\u002Fgithub.com\u002Fgin-gonic\u002Fgin\u002Fgraphs\u002Fcontributors).\n\n### How to Contribute\n\n- 🐛 **Report bugs** - Help us identify and fix issues\n- 💡 **Suggest features** - Share your ideas for improvements\n- 📝 **Improve documentation** - Help make our docs clearer\n- 🔧 **Submit code** - Fix bugs or implement new features\n- 🧪 **Write tests** - Improve our test coverage\n\n### Getting Started with Contributing\n\n1. Check out our [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines\n2. Join our community discussions and ask questions\n\n**All contributions are valued and help make Gin better for everyone!**\n","Gin 是一个用 Go 语言编写的高性能 HTTP Web 框架，专为构建 RESTful API、Web 应用程序和微服务而设计。其核心功能包括零分配路由、高效的中间件支持以及自动化的 JSON 验证等，这些特性使得 Gin 在处理高并发请求时表现出色，速度可比其他同类框架快40倍。此外，Gin 还具备崩溃恢复机制，确保服务器稳定运行。该框架非常适合需要快速响应时间的应用场景，如开发需处理大量并发请求的微服务、构建高吞吐量的 REST API 或者快速原型化网络服务。",2,"2026-06-17 02:34:32","top_all"]