swagger

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package swagger serves the embedded Swagger UI and OpenAPI YAML specs at /swagger/ and /api/ respectively.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(mux *http.ServeMux)

Mount registers the /swagger and /api routes on the given mux. /swagger redirects to /swagger/index.html; /swagger/ serves the static UI; /api/ serves the OpenAPI YAML specs.

func Specs

func Specs() []string

Specs returns the list of available YAML spec filenames (without path prefix).

Types

This section is empty.

Jump to

Keyboard shortcuts

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