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 redoc index.html page
View Source
var JavaScript string
JavaScript represents the redoc standalone javascript
Functions ¶
This section is empty.
Types ¶
type Redoc ¶
type Redoc struct { DocsPath string SpecPath string SpecFile string SpecFS *embed.FS Title string Description string }
Redoc configuration
func (Redoc) Handler ¶
func (r Redoc) Handler() http.HandlerFunc
Handler sets some defaults and returns a HandlerFunc
Click to show internal directories.
Click to hide internal directories.