Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Check this file https://github.com/evrone/go-clean-template/blob/master/internal/controller/http/v1/router.go
You can use swaggo/swag with code annotations
Yes, Swagger/OpenAPI is rarely works out of the box, in Mify (https://github.com/mify-io/mify) we did a lot of work to integrate it and still we have much stuff to improve, but you can try it, I think it works pretty smoothly.
Simple crud repo that uses gin-swagger library https://github.com/mtami/go-rest
I create this repo a while back for a simple presentation i was doing. https://github.com/csg33k/golug
You need to set these env variables/ configs. https://github.com/learning-cloud-native-go/myapp/blob/main/.env
Related posts
- Create Production-Ready SDKs with Goa
- High-Performance server for NATS.io, the cloud and edge native messaging system
- Accomplishing Single Responsibility Principle in my project
- Seeking Feedback on Go API Implementation using DDD
- [Request] Library Recommendation for Auto Swagger/OpenAPIv3 Documentation