# knife4gf **Repository Path**: iAsuma/knife4gf ## Basic Information - **Project Name**: knife4gf - **Description**: knife4gf is swagger ui for GoFrame V2, it based on knife4j. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-06-13 - **Last Updated**: 2022-06-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: Swagger, GoFrame, Knife4J, swagger-bootstrap-ui, Go语言 ## README # knife4gf knife4gf is swagger ui for GoFrame V2, it based on knife4j. ### 使用 1. 安装`knife4gf` ``` go get -u github.com/iasuma/knife4gf@{tag} ``` 2. 引入`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](https://github.com/gogf/gf) is a modular, powerful, high-performance and enterprise-class application development framework of Golang 2. [knife4j](https://gitee.com/xiaoym/knife4j) [(国外访问)](https://github.com/xiaoymin/swagger-bootstrap-ui) 是为Java MVC框架集成Swagger生成Api文档的工具,前身是swagger-bootstrap-ui