Documentation ¶
Index ¶
- func SetInfo(opts ...Option) error
- type Option
- func WithBasePath(basePath string) Option
- func WithCustom(custom map[string]interface{}) Option
- func WithDelims(delims string) Option
- func WithDescription(description string) Option
- func WithHost(host string) Option
- func WithInfoInstanceName(infoInstanceName string) Option
- func WithSchemes(schemes ...string) Option
- func WithTitle(title string) Option
- func WithVersion(version string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
func WithBasePath ¶
WithBasePath sets the base path of the API.
func WithCustom ¶
WithCustom sets the custom data to be used in the swagger template.
Access custom data in the template with {{.Custom.key}}.
func WithDelims ¶
WithDelims sets the delimiters to be used in the SetInfo function.
The default delimiters are "[[ ]]"
func WithDescription ¶
WithDescription sets the description of the API.
func WithInfoInstanceName ¶
WithInfoInstanceName sets the name of the swagger instance to be used.
The default name is "swagger".
func WithSchemes ¶
WithSchemes sets the schemes of the API.
Click to show internal directories.
Click to hide internal directories.