File tree 1 file changed +3
-14
lines changed
content/zh/docs/kitex/Getting started
1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -41,24 +41,13 @@ go env -w GOPROXY=https://goproxy.cn
41
41
42
42
Kitex 中使用到的代码生成工具包括 IDL 编译器与 kitex tool。了解更多有关代码生成工具的内容,参见[ 代码生成] ( /zh/docs/kitex/tutorials/code-gen/ )
43
43
44
- ### IDL 编译器
44
+ ### IDL 编译器 (Thrift 可跳过)
45
45
46
46
IDL 编译器能够解析 IDL 并生成对应的序列化和反序列化代码,Kitex 支持 Thrift 和 protobuf 这两种 IDL,这两种 IDL 的解析分别依赖于 thriftgo 与 protoc。
47
47
48
- 在快速开始章节中,我们使用到 Thrift IDL,故需要安装 thriftgo,执行以下命令即可:
48
+ - thrift 依赖的 thriftgo 在 安装 kitex 工具的时候会安装(最新版本会去掉对 thriftgo 的依赖),** 无需手动安装**
49
+ - protobuf 编译器安装可见 [ protoc] ( https://github.com/protocolbuffers/protobuf/releases ) 。
49
50
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
- ```
62
51
63
52
### kitex tool
64
53
You can’t perform that action at this time.
0 commit comments