Files
tldr/pages.zh/common/kitex.md
K.B.Dharun Krishna c106754852 chore: bump tldr-lint to v0.0.15, update package files (#12605)
* chore: bump tldr-lint to v0.0.15

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* fix: pages with TLDR021 error

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-04-04 13:35:55 +05:30

22 lines
693 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# kitex
> Kitex 是 Go RPC 框架 Kitex 框架提供的用于生成代码的一个命令行工具。
> 目前kitex 支持 thrift 和 protobuf 的 IDL并支持生成一个服务端项目的骨架。
> 更多信息:<https://www.cloudwego.io>.
- 生成客户端代码,项目在 `$GOPATH` 目录下:
`kitex {{路径/到/IDL文件.thrift}}`
- 生成客户端代码,项目不在 `$GOPATH` 目录下:
`kitex -module {{github.com/xx-org/xx-name}} {{路径/到/IDL文件.thrift}}`
- 根据 protobuf IDL 文件生成客户端代码:
`kitex -type protobuf {{路径/到/IDL文件.proto}}`
- 生成服务端代码:
`kitex -service {{svc_name}} {{路径/到/IDL文件.thrift}}`