modulepackage
0.0.0-20240116160420-ef421a1b0632
Repository: https://github.com/zhangxiaofeng05/go-redoc.git
Documentation: pkg.go.dev
# README
go-redoc
redoc for go
Usage
gin
import (
"github.com/gin-gonic/gin"
go_redoc "github.com/zhangxiaofeng05/go-redoc"
)
...
r := gin.Default()
v1 := r.Group("/api/v1")
gr := &go_redoc.Redoc{
SwaggerJsonPath: "/swagger.json",
JsonData: docs.SwaggerInfo.ReadDoc(),
RedocPath: "/redoc",
Title: docs.SwaggerInfo.Title,
Description: docs.SwaggerInfo.Description,
}
go_redoc.GinHandlerDocs(v1, gr)
# Functions
No description provided by the author