Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Templates embed.FS
Functions ¶
func HtmlFromSpec ¶
HtmlFromSpec generates the HTML page for a Stoplight Elements viewer of the OpenAPI specification at the given path
Types ¶
type TemplateData ¶
type TemplateData struct {
Title string // Title of the page
ApiDescriptionUrl string // URL to the OpenAPI specification
}
TemplateData is the data used to render the HTML template
Click to show internal directories.
Click to hide internal directories.