package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jan 25, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
swag-runtime
Runtime dependency for code generated by swag.
Documentation
¶
Name is a unique name be used to register swag instance.
ReadDoc reads swagger document. An optional name parameter can be passed to read a specific document.
The default name is "swagger".
Register registers swagger for given name.
Spec holds exported Swagger Info so clients can modify it.
InstanceName returns Spec instance name.
ReadDoc parses SwaggerTemplate into swagger document.
type Swagger interface {
ReadDoc() string
}
Swagger is an interface to read swagger document.
GetSwagger returns the swagger instance for given name.
If not found, returns nil.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.