LinuxCommandLibrary

kitex

Code generation tool provided by the Go RPC framework Kitex.

TLDR

Generate client codes when a project is in $GOPATH

$ kitex [path/to/IDL_file.thrift]
copy


Generate client codes when a project is not in $GOPATH
$ kitex -module [github.com/xx-org/xx-name] [path/to/IDL_file.thrift]
copy


Generate client codes with protobuf IDL
$ kitex -type protobuf [path/to/IDL_file.proto]
copy


Generate server codes
$ kitex -service [svc_name] [path/to/IDL_file.thrift]
copy

Copied to clipboard