Skip to content

Commit

Permalink
Update prerequisite.md
Browse files Browse the repository at this point in the history
  • Loading branch information
YangruiEmma authored Dec 9, 2024
1 parent 32cc6cd commit ab4d9ed
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions content/zh/docs/kitex/Getting started/prerequisite.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,9 @@ Kitex 中使用到的代码生成工具包括 IDL 编译器与 kitex tool。了

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

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

```bash
go install github.com/cloudwego/thriftgo@latest
```

protobuf 编译器安装可见 [protoc](https://github.com/protocolbuffers/protobuf/releases)

安装成功后,执行 `thriftgo --version` 可以看到具体版本号的输出(版本号有差异,以 x.x.x 示例):

```bash
$ thriftgo --version
thriftgo x.x.x
```

### kitex tool

Expand Down

0 comments on commit ab4d9ed

Please sign in to comment.