Skip to content

go-mixins/swagger-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package swagger-ui

Embeds (hopefully) latest version of Swagger UI static files into a http.Handler

Usage example:

import (
   "github.com/go-mixins/swagger-ui"
)

http.Handle(swagger.Handler(func()([]byte, error) {
   return []byte(```
   ... swagger.json contents, can be embedded as well ...
   ```)
})

...

http.ListenAndServe(":8080", nil)

Tools used

To re-generate embedded UI files esc tool must be installed.

LICENSE

See Swagger UI license.

About

Swagger UI embedded as Go http.Handler

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors