Documentation
¶
Overview ¶
Package swagui simplifies serving an instance of Swagger-UI. It can be added to a multiplexer, or served directly. If using a multiplexer, the path prefix option must match the relevant route.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Version int
PathPrefix string
DefaultURLParam string
NotFoundHandler http.Handler
}
Options holds optional Swagui data.
type Swagui ¶
type Swagui struct {
// contains filtered or unexported fields
}
Swagui provides a Swagger-UI http.Handler and related data.
func New ¶
New returns a Swagui and defaults to the latest version of Swagger. If a path prefix is provided, it will be filtered for appropriate usage.
func (*Swagui) PathPrefix ¶
PathPrefix returns the current path prefix which has been filtered for appropriate usage.
Click to show internal directories.
Click to hide internal directories.