Categorygithub.com/zhangxiaofeng05/go-redoc
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)

http://127.0.0.1:8080/api/v1/redoc

# Functions

No description provided by the author

# Structs

No description provided by the author