ribice
golang-swaggerui-example
Go

SwaggerUI generation example for Golang

Last updated Apr 9, 2026
90
Stars
16
Forks
1
Issues
0
Stars/day
Attention Score
11
Language breakdown
Go 99.4%
Shell 0.6%
Files click to expand
README

golang-swaggerui-example

Build Status codecov Go Report Card

Golang-swaggerui-example is an example repository for setting up API documentation using SwaggerUI in your Golang project. Detailed instruction is available on my blog.

API Interaction

SwaggerUI is accessible via accessing localhost:8080/swaggerui/ Detailed explanation on how to serve /swaggerui is explained in THIS blog post.

NOTE

Swagger.json should not be in your git repository, instead it should be generated by a CI tool.

The code provided here doesn't follow any standards. It is intended only to demonstrate go-swagger spec generation in a simple go project. Do not use this project structure/implementation as a reference for your Golang REST projects.

License

golang-swaggerui-example is licensed under the MIT license. Check the LICENSE file for details.

Author

Emir Ribic

🔗 More in this category

© 2026 GitRepoTrend · ribice/golang-swaggerui-example · Updated daily from GitHub