1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 22:22:09 +02:00
tldr/pages/common/kitex.md
Juri Dispan 3dc0921018
gitk, kitex, rclone, venv: edit pages (#12539)
* gitk, kitex, rclone, venv: remove trailing & leading whitespace
* gitk: remove placeholder

---------

Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
2024-03-22 19:05:33 +01:00

638 B

kitex

Code generation tool provided by the Go RPC framework Kitex. Kitex accepts both thrift and protobuf IDLs, and supports generating a skeleton of a server side project. More information: https://www.cloudwego.io.

  • Generate client codes when a project is in $GOPATH:

kitex {{path/to/IDL_file.thrift}}

  • Generate client codes when a project is not in $GOPATH:

kitex -module {{github.com/xx-org/xx-name}} {{path/to/IDL_file.thrift}}

  • Generate client codes with protobuf IDL:

kitex -type protobuf {{path/to/IDL_file.proto}}

  • Generate server codes:

kitex -service {{svc_name}} {{path/to/IDL_file.thrift}}