Go to file
John Olheiser 0eba95e3ae
MIT
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-10-03 23:21:24 -05:00
_example Initial Commit 2020-10-02 14:09:22 -05:00
.gitignore Initial Commit 2020-10-02 14:09:22 -05:00
go.mod Initial Commit 2020-10-02 14:09:22 -05:00
LICENSE MIT 2020-10-03 23:21:24 -05:00
README.md MIT 2020-10-03 23:21:24 -05:00
swagui.go Initial Commit 2020-10-02 14:09:22 -05:00
template.go Initial Commit 2020-10-02 14:09:22 -05:00

Swagger UI

A quick router implementation of Swagger UI.

Configuration

You can pass your own entire JS setup using swagui.WithScript(). This seemed simpler than trying to re-create all the options in Go.

The default configuration is just how I like to present Swagger UI, so it may need some adjustments for your liking.

See Swagger UI Configuration.

Examples

swagui
go run _example/swagui/main.go

default from Swagger UI documentation
go run _example/default/main.go

License

MIT