https://github.com/teambition/swaggo
Convert Go annotations to Swagger Documentation (version 2.0)
https://github.com/teambition/swaggo
annotation api-documentation comment document swagger v2
Last synced: 9 months ago
JSON representation
Convert Go annotations to Swagger Documentation (version 2.0)
- Host: GitHub
- URL: https://github.com/teambition/swaggo
- Owner: teambition
- License: mit
- Created: 2017-02-16T10:56:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T10:46:21.000Z (over 3 years ago)
- Last Synced: 2025-06-24T20:56:23.312Z (9 months ago)
- Topics: annotation, api-documentation, comment, document, swagger, v2
- Language: Go
- Homepage:
- Size: 2.76 MB
- Stars: 72
- Watchers: 5
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Swaggo - `v0.2.8`
=====
Parse annotations from Go code and generate [Swagger Documentation](http://swagger.io/)
[](https://travis-ci.org/teambition/swaggo)
[](https://coveralls.io/r/teambition/swaggo)
[](https://raw.githubusercontent.com/teambition/swaggo/master/LICENSE)
- [About](#about)
- [Quick Start Guide](#quick-start-guide)
- [Install](#install)
- [Declarative Comments Format](#declarative-comments-format)
- [Usage](#usage)
- [Kpass Example](#kpass-example)
- [TODO(In the near future)](#todoin-the-near-future)
## About
Generate API documentation from annotations in Go code. It's always used for you Go server application.
The swagger file accords to the [Swagger Spec](https://github.com/OAI/OpenAPI-Specification) and displays it using
[Swagger UI](https://github.com/swagger-api/swagger-ui)(this project dosn't provide).
## Quick Start Guide
### Install
```shell
go get -u -v github.com/teambition/swaggo
```
### Declarative Comments Format
[中文](https://github.com/teambition/swaggo/wiki/Declarative-Comments-Format)
### Usage
```shell
swaggo --help
```
### Kpass Example
[Kpass](https://github.com/seccom/kpass#swagger-document)
### TODO(In the near future)
- [ ] Support API without Controller structure
- [ ] Explain declarative comments format with english