repositorypackage
0.4.1
Repository: https://github.com/go-mixins/swagger-ui.git
Documentation: pkg.go.dev
# README
Package swagger-ui
Embeds (hopefully) latest version of Swagger UI static files into a http.Handler
Usage example:
import (
"github.com/go-mixins/swagger-ui"
)
http.Handle(swagger.Handler(func()([]byte, error) {
return []byte(```
... swagger.json contents, can be embedded as well ...
```)
})
...
http.ListenAndServe(":8080", nil)
Tools used
To re-generate embedded UI files esc tool must be installed.
LICENSE
See Swagger UI license.