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

swagger

package
v2.0.0-...-1948240 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) fiber.Handler

New creates a swagger middleware.

It validates and reads the swagger file and returns nil when the file does not exist or cannot be read.

Types

type Config

type Config struct {
	Title            string // Document title
	FilePath         string // Document path
	BasePath         string // Access path
	SwaggerBundleUrl string // swagger-ui-bundle.js URL
	SwaggerPresetUrl string // swagger-ui-standalone-preset.js URL
	SwaggerStylesUrl string // swagger-ui.css URL
}

Config is the swagger middleware configuration.

Jump to

Keyboard shortcuts

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