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 ¶
func LookupTool ¶ added in v0.9.0
LookupTool returns the compiler path found in $PATH; if not found, returns $GOPATH/bin/$tool
func ValidateCMD ¶ added in v0.9.0
ValidateCMD check if the path exists and if the version is satisfied
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 Check func(*Arguments) error }
ExtraFlag is designed for adding flags that is irrelevant to code generation.
Click to show internal directories.
Click to hide internal directories.