Help us shape the future of Go! Take the 2026 Go Developer Survey

swaggerui

package
v2.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package swaggerui serves the OpenAPI document and a Swagger UI page.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenAPIHandler

func OpenAPIHandler(w http.ResponseWriter, r *http.Request)

OpenAPIHandler serves /openapi.json.

func SwaggerUIHandler

func SwaggerUIHandler(w http.ResponseWriter, r *http.Request)

SwaggerUIHandler serves /docs.

Types

type APIRoute

type APIRoute struct {
	Method      string
	Path        string
	Summary     string
	Description string
	Tag         string
	RequestBody map[string]interface{}
	Responses   map[string]interface{}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL