Skip to content

iAsuma/knife4gf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

knife4gf

knife4gf is swagger ui for GoFrame V2, it based on knife4j.

使用

  1. 安装knife4gf
go get -u github.com/iasuma/knife4gf@{tag}
  1. 引入knife4gf
package main

import (
    "github.com/gogf/gf/v2/frame/g"
    "github.com/iasuma/knife4gf"
)

func main() {
    s := g.Server()
    s.Plugin(&knife4gf.Knife4gf{})
    s.SetPort(8199)
    s.Run()
}

Start your server and visit: http://127.0.0.1:8199/kdoc/

鸣谢

  1. GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang
  2. knife4j (国外访问) 是为Java MVC框架集成Swagger生成Api文档的工具,前身是swagger-bootstrap-ui

About

knife4gf is swagger ui for GoFrame V2, it based on knife4j.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages