- https://swagger.io/
- https://github.com/swaggo
- https://github.com/swaggo/swag?tab=readme-ov-file#how-to-use-it-with-gin
- https://github.com/swaggo/http-swagger
- https://www.linkedin.com/pulse/swagger-go-pragmatic-guide-phuong-le-2gbhc
cat >> Makefile <<'EOF'
swag-update:
@if [ ! -d "swagger-go" ]; then \
git clone [email protected]:d2jvkpn/swagger-go.git /tmp/swagger-go; \
rsync -arvP --exclude .git /tmp/swagger-go ./; \
rm -rf /tmp/swagger-go; \
fi
bash swagger-go/swag.sh
swag-run:
bash swagger-go/swag.sh
./swagger-go/target/swagger-go
EOF