Categorygithub.com/nakiner/swagger-ui-go
modulepackage
0.0.3
Repository: https://github.com/nakiner/swagger-ui-go.git
Documentation: pkg.go.dev

# README

swagger-ui-go

Provides http handler for swagger ui static files

Generate new swagger:

  1. Place new .js, .png, .html, .css files inside the folder
  2. brew install go-bindata or use newest https://github.com/kevinburke/go-bindata
  3. go-bindata -pkg swaggerui -o bindata.go *.css *.js *.png *.html

How to use:

mux.Mount("/swagger", http.StripPrefix("/swagger", swagger.HTTPHandler()))

# Functions

Asset loads and returns the asset for the given name.
AssetDir returns the file names below a certain directory embedded in the file by go-bindata.
AssetInfo loads and returns the asset info for the given name.
AssetNames returns the names of the assets.
HTTPHandler swagger-ui handler.
MustAsset is like Asset but panics when Asset would return an error.
RestoreAsset restores an asset under the given directory.
RestoreAssets restores an asset under the given directory recursively.