/swagger-ui-go-embed

embed swagger html css js into go package

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Start

git clone --recursive https://github.com/biolee/swagger-ui-go-embed.git
cd swagger-ui-go-embed
glide install
go run ./example/main.go

Usage

import (
	"net/http"

	"github.com/biolee/swagger-ui-go-embed/ui"
)
func main(){
	http.Handle("/",ui.Handler)
	http.ListenAndServe(":8081",nil)
}