Documentation
¶
Overview ¶
package openapis 为 [https://pkg.go.dev/github.com/issue9/web/openapi] 提供功能支持
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCDNViewer ¶
WithCDNViewer 创建基于 CDN 的 OpenAPI 文档阅读器
name 指定阅读器的名称,当前可用的值:
- scalar https://github.com/scalar/scalar
- swagger https://swagger.io
logo 文档的 LOGO,可以为空,根据 name 值的不同, 对空值的处理会有所不同,具体可参考各自的 WithCDN 文档;
NOTE: 若需要更精细的控制,可以直接调用 github.com/issue9/webuse/v7/openapis/scalar、 github.com/issue9/webuse/v7/openapis/swagger 包中的方法。
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package scalar 提供了 scalar 的实现
[scalar]: https://github.com/scalar/scalar
|
Package scalar 提供了 scalar 的实现 [scalar]: https://github.com/scalar/scalar |
|
Package swagger 提供 SwaggerUI 的实现
[SwaggerUI]: https://swagger.io
|
Package swagger 提供 SwaggerUI 的实现 [SwaggerUI]: https://swagger.io |
Click to show internal directories.
Click to hide internal directories.