Documentation ¶
Index ¶
Constants ¶
View Source
const EnvPluginMode = "KITEX_PLUGIN_MODE"
EnvPluginMode is an environment that kitex uses to distinguish run modes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtraFlag ¶
type ExtraFlag struct { // apply may add flags to the FlagSet. Apply func(*flag.FlagSet) // check may perform any value checking for flags added by apply above. // When an error occur, check should directly terminate the program by // os.Exit with exit code 1 for internal error and 2 for invalid arguments. Check func(*Arguments) }
ExtraFlag is designed for adding flags that is irrelevant to code generation.
Click to show internal directories.
Click to hide internal directories.