Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free. Learn more →
Top 23 Go Swagger Projects
-
gin-vue-admin
基于vite+vue3+gin搭建的开发基础平台(支持TS,JS混用),集成jwt鉴权,权限管理,动态路由,显隐可控组件,分页封装,多点登录拦截,资源权限,上传下载,代码生成器,表单生成器,chatGPT自动查表等开发必备功能。
-
Project mention: Ask HN: Rapid Development API-Only One Person Stack – Seeking Performant Tech | news.ycombinator.com | 2023-08-02
I don't have any example that's public atm, but the guide in grpc-gateway is pretty clear/can be followed step by step.
https://github.com/grpc-ecosystem/grpc-gateway
To integrate with Fiber, I used the Fiber Adaptor (also pretty straightforward): https://docs.gofiber.io/api/middleware/adaptor
-
InfluxDB
Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
-
Project mention: go-ecommerce-microservices: A practical e-commerce microservices, built with cqrs, event sourcing, vertical slice architecture, event-driven architecture. | /r/golang | 2023-08-26
Some of the features: - ✅ Using Vertical Slice Architecture as a high level architecture - ✅ Using Event Driven Architecture on top of RabbitMQ Message Broker with a custom [Event Bus](pkg/messaging/bus/) - ✅ Using Event Sourcing in Audit Based services like [Orders Service](services/orders/) - ✅ Using CQRS Pattern and Mediator Patternon top of Go-MediatR library - ✅ Using Dependency Injection and Inversion of Controlon top of uber-go/fx library - ✅ Using RESTFul api with Echo framework and using swagger with swaggo/swag library - ✅ Using Postgres and EventStoreDB to write databases with fully supports transactions(ACID) - ✅ Using MongoDB and Elastic Search for read databases (NOSQL) - ✅ Using OpenTelemetry for collection Distributed Tracing with using Jaeger and Zipkin - ✅ Using OpenTelemetry for collection Metrics with using Prometheus and Grafana - ✅ Using Unit Test for testing small units with mocking dependent classes and using Mockery for mocking dependencies - ✅ Using End2End Test and Integration Test for testing features with all of their real dependeinces using docker containers (cleanup tests) and testcontainers-go library
-
you can have a look at https://github.com/eddycjy/go-gin-example you don't have to use gin as the framework rather than looking at how he structure the folders.
-
If you really need a framework, you can take a look at Echo or, for a contract-first approach, https://goa.design/
-
Project mention: OpenAPI Client and Server Code Generator for Golang | news.ycombinator.com | 2023-08-30
-
-
SonarQube
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
-
-
kin-openapi
OpenAPI 3.0 (and Swagger v2) implementation for Go (parsing, converting, validation, and more)
Project mention: OpenAPI Generator allows generation of API client libraries from OpenAPI Specs | news.ycombinator.com | 2022-10-15What is your language?
I've found kin-openapi to be good for Go:
-
Faygo
Faygo is a fast and concise Go Web framework that can be used to develop high-performance web app(especially API) with fewer codes. Just define a struct handler, faygo will automatically bind/verify the request parameters and generate the online API doc.
-
-
But also this project https://github.com/ogen-go/ogen It worth keeping an eye on.
-
fiber-go-template
📝 Production-ready backend template with Fiber Go Web Framework for Create Go App CLI.
-
-
-
api-firewall
Fast and light-weight API proxy firewall for request and response validation by OpenAPI specs.
Project mention: api-firewall VS asteria - a user suggested alternative | libhunt.com/r/api-firewall | 2023-08-27 -
-
apiclarity
An API security tool to capture and analyze API traffic, test API endpoints, reconstruct Open API specification, and identify API security risks.
We'll install APIClarity into a Kubernetes cluster to test our API documentation. We're using a Kind cluster for demonstration purposes. Of course, if you have another Kubernetes cluster up and running elsewhere, all steps also work there.
-
go-starter
An opinionated production-ready SQL-/Swagger-first RESTful JSON API written in Go, highly integrated with VSCode DevContainers by allaboutapps.
-
microservices-go
Golang Microservice Boilerplate using MySQL, Docker and Swagger, API REST. Gin Go and GORM with pagination and implementation of a Clean Architecture.
Project mention: [code review request] Coming from Java world, want to make sure I'm not getting lost doing Golang | /r/golang | 2022-12-07 -
Project mention: Would you like to be notified when your API provider makes a breaking change? | news.ycombinator.com | 2023-06-11
-
tutorial-go-fiber-rest-api
📖 Build a RESTful API on Go: Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers.
-
-
Mergify
Tired of breaking your main and manually rebasing outdated pull requests?. Managing outdated pull requests is time-consuming. Mergify's Merge Queue automates your pull request management & merging. It's fully integrated to GitHub & coordinated with any CI. Start focusing on code. Try Mergify for free.
Go Swagger related posts
- OpenAPI Client and Server Code Generator for Golang
- Would you like to be notified when your API provider makes a breaking change?
- Would you like to be notified when your API provider makes a breaking change?
- [Request] Library Recommendation for Auto Swagger/OpenAPIv3 Documentation
- Is there complete documentation of the auth REST API anywhere?
- Public API documentation. What to use?
- Combining oapi-codegen, echo and validator frameworks to build robust APIs
-
A note from our sponsor - SonarQube
www.sonarqube.org | 22 Sep 2023
Index
What are some of the best open-source Swagger projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | gin-vue-admin | 18,287 |
2 | grpc-gateway | 16,046 |
3 | swag | 8,817 |
4 | go-gin-example | 6,421 |
5 | goa | 5,282 |
6 | oapi-codegen | 4,091 |
7 | gin-swagger | 3,232 |
8 | Flagr | 2,229 |
9 | kin-openapi | 2,094 |
10 | Faygo | 1,592 |
11 | eliasdb | 972 |
12 | ogen | 739 |
13 | fiber-go-template | 700 |
14 | Go-Clean-Architecture-REST-API | 533 |
15 | restish | 529 |
16 | api-firewall | 494 |
17 | openapi-mock | 420 |
18 | apiclarity | 417 |
19 | go-starter | 384 |
20 | microservices-go | 326 |
21 | oasdiff | 311 |
22 | tutorial-go-fiber-rest-api | 293 |
23 | Ginrpc | 282 |