Registry / web-framework / swaggo-http-swagger-v2

swaggo-http-swagger-v2

JSON →
library2.0.2gogounverified

A Go HTTP handler that serves Swagger UI for API documentation generated by swaggo.

go get github.com/swaggo/http-swagger/v2
INSTALL
IMPORT
SIG · SWAGGO-HTTP-SWAGGE
S
swaggo-http-swagger-v2
web-frameworkgov2.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

httpSwagger
github.com/swaggo/http-swagger/v2

Serves Swagger UI at /swagger/.

package main import ( "net/http" "github.com/swaggo/http-swagger/v2" ) func main() { http.Handle("/swagger/", httpSwagger.Handler()) http.ListenAndServe(":8080", nil) }
Debug
Known issues
breakingVersion 2 has breaking changes from v1, including import path.
fix
Use /v2 import path and update handler signature.
affects: >=2.0.0
Upgrade
Version history
2.0.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
swaggo-http-swagger-v2 — go get swaggo-http-swagger-v2 · libregistry