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)To re-generate embedded UI files esc tool must be installed.
See Swagger UI license.