kitex
generates Go code from Thrift or Protobuf IDL files
TLDR
Generate service code
SYNOPSIS
kitex [options] idlfile_
DESCRIPTION
kitex is a code generation tool for the Kitex high-performance RPC framework, part of ByteDance's open-source CloudWeGo ecosystem. It reads Thrift or Protocol Buffers interface definition language (IDL) files and generates Go scaffolding code for both servers and clients, including service interfaces, request/response types, serialization logic, and a runnable project skeleton.
The generated code is designed for building Go microservices with features like connection pooling, load balancing, and circuit breaking built into the Kitex framework. By default, kitex produces both server and client code, but the `-client` flag restricts output to client stubs only. Custom code templates can be provided via the `-template` option to control the structure and style of the generated project.
PARAMETERS
IDLFILE_
Thrift or Protobuf IDL file.-module NAME
Go module name.-service NAME
Service name.-client
Generate client code only.-template DIR
Custom template directory.--help
Display help information.
CAVEATS
Part of CloudWeGo. Go-specific. Thrift or Protobuf IDL required.
HISTORY
kitex is the code generator for Kitex, a high-performance RPC framework created by ByteDance.
