chore(deps): bump aquasecurity/trivy-action in the actions group (#4557)
Bumps the actions group with 1 update: aquasecurity/trivy-action.
Updates
aquasecurity/trivy-actionfrom 0.34.1 to 0.34.2
updated-dependencies:
- dependency-name: aquasecurity/trivy-action dependency-version: 0.34.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions …
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Gin Web Framework
📰 Gin 1.12.0 is now available!
We’re excited to announce the release of Gin 1.12.0! This release brings new features, performance improvements, and important bug fixes. Check out the release announcement on our official blog for the full details.
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 where speed and developer productivity are essential.
Why choose Gin?
Gin combines the simplicity of Express.js-style routing with Go’s performance characteristics, making it ideal for:
Gin’s key features:
Getting Started
Prerequisites
Installation
With Go’s module support, simply import Gin in your code and Go will automatically fetch it during build:
Your First Gin Application
Here’s a complete example that demonstrates Gin’s simplicity:
Running the application:
Save the code above as
main.goRun the application:
Open your browser and visit
http://localhost:8080/pingYou should see:
{"message":"pong"}What this example demonstrates:
Next Steps
After running your first Gin application, explore these resources to learn more:
📚 Learning Resources
📖 Documentation
API Reference
User Guides
The comprehensive documentation is available on gin-gonic.com in multiple languages:
Official Tutorials
⚡ Performance Benchmarks
Gin demonstrates exceptional performance compared to other Go web frameworks. It uses a custom version of HttpRouter for maximum efficiency. View detailed benchmarks →
Gin vs. Other Go Frameworks (GitHub API routing benchmark):
🔌 Middleware Ecosystem
Gin has a rich ecosystem of middleware for common web development needs. Explore community-contributed middleware:
🏢 Production Usage
Gin powers many high-traffic applications and services in production:
🤝 Contributing
Gin is the work of hundreds of contributors from around the world. We welcome and appreciate your contributions!
How to Contribute
Getting Started with Contributing
All contributions are valued and help make Gin better for everyone!