Documentation ¶ Index ¶ type Generator func NewGenerator() Generator type Spec func (spec *Spec) ServeHTTP(w http.ResponseWriter, _ *http.Request) func (spec *Spec) WithUI(title string, basePath string, docPattern string, config *swg.Config) http.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Generator ¶ type Generator interface { Generate(router gotrac.Router) (*Spec, error) } func NewGenerator ¶ func NewGenerator() Generator type Spec ¶ type Spec openapi31.Spec func (*Spec) ServeHTTP ¶ func (spec *Spec) ServeHTTP(w http.ResponseWriter, _ *http.Request) func (*Spec) WithUI ¶ func (spec *Spec) WithUI(title string, basePath string, docPattern string, config *swg.Config) http.Handler Source Files ¶ View all Source files generator.go spec.go utils.go Click to show internal directories. Click to hide internal directories.