Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSpecNotFound = errors.New("spec not found")
ErrSpecNotFound error for when spec file not found
View Source
var HTML string
HTML represents the openapi-ui index.html page
View Source
var JavaScript string
JavaScript represents the openapi-ui umd javascript
Functions ¶
This section is empty.
Types ¶
type Doc ¶
type Doc struct { DocsPath string SpecPath string SpecFile string SpecFS *embed.FS Title string Description string Theme string }
Doc configuration
func (Doc) Handler ¶
func (r Doc) Handler() http.HandlerFunc
Handler sets some defaults and returns a HandlerFunc
Click to show internal directories.
Click to hide internal directories.