Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j178/swagger-ui
Swagger UI source code in go package, and will get auto updates.
https://github.com/j178/swagger-ui
Last synced: about 1 month ago
JSON representation
Swagger UI source code in go package, and will get auto updates.
- Host: GitHub
- URL: https://github.com/j178/swagger-ui
- Owner: j178
- License: mit
- Created: 2022-10-30T08:09:19.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-29T00:20:09.000Z (7 months ago)
- Last Synced: 2024-10-12T19:52:17.343Z (2 months ago)
- Language: Go
- Homepage:
- Size: 194 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swagger UI embedded in Go binary
This a golang package that embeds swagger-ui source, making it easy to serve swagger-ui from a golang application.
## Usage
```shell
go get github.com/j178/swagger-ui
``````go
package mainimport (
"net/http"
"github.com/j178/swagger-ui"
)func main() {
http.Handle("/swagger/", http.StripPrefix("/swagger/", http.FileServer(swagger_ui.FS)))
http.ListenAndServe(":8000", nil)
}
```