Use go.work and workspaces
未關閉
- 主要語言
- Go
- 星號
- 10.8k
- 分支
- 1.3k
- 平均合併
- 2 天 36 分鐘
- 30 天內合併 PR
- 26
描述
You've chosen a very strange way to install it. The CLI is usually used for such tasks. Example: protoc-gen-go for gRPC.
But to simplify your method, you can use the go.work file.
```sh
go work init
```
Then you need to create the tools directory with tools.go. Then execute `go mod init tools` and `go mod tidy`.
Then do the same for the main space and include two workspaces in go.work.
```sh
go 1.21.0
use (
.
tools
)
```
This is to separate the dependencies of the application and the generator.

貢獻指南
評估
這個 Issue 還沒有評估資料。