https://github.com/zeromicro/goctl-go-compact
https://github.com/zeromicro/goctl-go-compact
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/zeromicro/goctl-go-compact
- Owner: zeromicro
- Created: 2020-12-13T11:54:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-25T15:46:03.000Z (over 2 years ago)
- Last Synced: 2025-03-26T08:04:01.487Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 164 KB
- Stars: 33
- Watchers: 3
- Forks: 12
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-zero - goctl-go-compact - goctl plugin that merges handler files (Tools and plugins for [go-zero](https://github.com/tal-tech/go-zero))
README
# goctl-go-compact
This plugin is used to merge all the routes in one file.
### 1. install goctl-go-compact
```
$ GOPROXY=https://goproxy.cn/,direct go install github.com/zeromicro/goctl-go-compact@latest
```
### 2. environment setup
Make sure the installed `goctl-go-compact` in your `$PATH`
### 3. Usage
```
$ goctl api plugin -p goctl-go-compact -api user.api -dir .
```