Skip to content

Commit b5e2299

Browse files
authored
Update prerequisite.md (#1178)
1 parent 32cc6cd commit b5e2299

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

Diff for: content/zh/docs/kitex/Getting started/prerequisite.md

+3-14
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,13 @@ go env -w GOPROXY=https://goproxy.cn
4141

4242
Kitex 中使用到的代码生成工具包括 IDL 编译器与 kitex tool。了解更多有关代码生成工具的内容,参见[代码生成](/zh/docs/kitex/tutorials/code-gen/)
4343

44-
### IDL 编译器
44+
### IDL 编译器 (Thrift 可跳过)
4545

4646
IDL 编译器能够解析 IDL 并生成对应的序列化和反序列化代码,Kitex 支持 Thrift 和 protobuf 这两种 IDL,这两种 IDL 的解析分别依赖于 thriftgo 与 protoc。
4747

48-
在快速开始章节中,我们使用到 Thrift IDL,故需要安装 thriftgo,执行以下命令即可:
48+
- thrift 依赖的 thriftgo 在 安装 kitex 工具的时候会安装(最新版本会去掉对 thriftgo 的依赖),**无需手动安装**
49+
- protobuf 编译器安装可见 [protoc](https://github.com/protocolbuffers/protobuf/releases)
4950

50-
```bash
51-
go install github.com/cloudwego/thriftgo@latest
52-
```
53-
54-
protobuf 编译器安装可见 [protoc](https://github.com/protocolbuffers/protobuf/releases)
55-
56-
安装成功后,执行 `thriftgo --version` 可以看到具体版本号的输出(版本号有差异,以 x.x.x 示例):
57-
58-
```bash
59-
$ thriftgo --version
60-
thriftgo x.x.x
61-
```
6251

6352
### kitex tool
6453

0 commit comments

Comments
 (0)