-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
15,796 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
sidebar_position: 7 | ||
--- | ||
|
||
# CLI | ||
|
||
Go Gin Boilerplate 使用 [Cobra](https://github.com/spf13/cobra) 打造现代命令行工具,简化项目管理和操作。 | ||
|
||
## 介绍 | ||
|
||
## 需求 | ||
|
||
## 使用 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
sidebar_position: 6 | ||
--- | ||
|
||
# Swagger | ||
|
||
Swagger 是一个 API 文档生成工具,可以根据代码注释生成 API 文档。 | ||
项目中使用 [Gin-Swagger](https://github.com/swaggo/gin-swagger)生成 API 文档,方便查看和调试接口。 [在线文档地址](https://go-gin-boilerplate.gganbu.services/swagger/index.html) | ||
|
||
## 介绍 | ||
|
||
Go Gin Boilerplate 使用 [Gin-Swagger](https://github.com/swaggo/gin-swagger) 生成 API 文档,方便查看和调试接口。 | ||
|
||
## 需求 | ||
|
||
在平时的开发过程中,我们需要编写接口文档,方便前端开发人员查看和调试接口。 | ||
一般我们会有以下几点主要的需求: | ||
|
||
- **接口文档生成**,根据代码注释快速生成接口文档 | ||
- **接口文档查看**,方便共享给其他开发人员查看 | ||
- **接口文档调试**,能够在线调试,尽可能的和目前开发环境保持一致 | ||
|
||
## 使用 | ||
|
||
<!-- 介绍使用 swagger,一步步来 --> | ||
|
||
<!-- ,怎么安装,添加到路由,注入权限 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.