Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ScalarUITemplate string
View Source
var SwaggerUITemplate string
Functions ¶
func GenerateOpenAPI ¶
func GenerateOpenAPI() []byte
GenerateOpenAPI generates an OpenAPI 3.0 JSON specification from all registered route metadata.
func Register ¶
func Register(metas ...RouteMeta)
Register adds or updates one or more RouteMeta entries in the radix tree. If a route with the same Method+Path already exists, its fields are merged (non-zero fields in the new entry override the existing ones). This allows Handle() to register basic metadata (method, path) first, and contract-based Mount() to enrich it later with ReqType/RespType/Tag.
func ScalarUIHTML ¶
ScalarUIHTML returns the Scalar API Reference HTML page pointing to the given openapi.json URL.
func SwaggerUIHTML ¶
SwaggerUIHTML returns the Swagger UI HTML page pointing to the given openapi.json URL.
Types ¶
Click to show internal directories.
Click to hide internal directories.