Discover Packages
github.com/oaswrap/spec-ui
swaggerui
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Apr 5, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
IndexTpl creates page template.
WithUI configures the handler to use Swagger UI, loading assets from CDN.
An optional config.SwaggerUI value may be passed to customise the UI behaviour.
type Data struct {
Title string `json:"title"`
OpenAPIURL string `json:"openapiURL"`
HideCurl bool `json:"hideCurl"`
JsonEditor bool `json:"jsonEditor"`
UIConfig map[string ]string `json:"-"`
}
Handler handles swagger UI request.
NewHandler returns a HTTP handler for swagger UI.
ServeHTTP implements http.Handler interface to handle swagger UI request.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.