Documentation ¶
Index ¶
- func CreateFile(path, content string) (err error)
- func FindRootPath(absoluteFilePath, relativeFilePath string) string
- func GetBuildGoPaths() []string
- func GetGOPATH() (gopath string, err error)
- func GetIdlType(path string, pbName ...string) (string, error)
- func GitCheckout(branch, path string) error
- func GitClone(gitURL, path string) error
- func GitPath(gitURL string) (string, error)
- func Hessian2PostProcessing(args args.Arguments)
- func InitGoMod(module string) error
- func IsHzNew(outputDir string) bool
- func IsWindows() bool
- func LookupTool(idlType string) (string, error)
- func PathExist(path string) (bool, error)
- func ReadFileContent(filePath string) (content []byte, err error)
- func ReplaceThriftVersion()
- func SearchGoMod(cwd string, recurse bool) (moduleName, path string, found bool)
- func SetHzVerboseLog(v bool)
- func StringSliceSpilt(s []string) []string
- func UpgradeGolangProtobuf()
- type FlagStringSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
func FindRootPath ¶
func GetBuildGoPaths ¶
func GetBuildGoPaths() []string
GetBuildGoPaths returns the list of Go path directories.
func GetIdlType ¶
GetIdlType is used to return the idl type.
func GitCheckout ¶ added in v0.1.1
func Hessian2PostProcessing ¶
Hessian2PostProcessing is responsible for performing hessian2-related post-processing. e.g. Replace *java.Object to java.Object Please refer to kitex/tool/cmd/kitex/main.go #NormalExit for detail.
func IsWindows ¶
func IsWindows() bool
IsWindows determines whether the current operating system is Windows
func LookupTool ¶
func ReadFileContent ¶
func ReplaceThriftVersion ¶
func ReplaceThriftVersion()
func SearchGoMod ¶
SearchGoMod searches go.mod from the given directory (which must be an absolute path) to the root directory. When the go.mod is found, its module name and path will be returned.
func SetHzVerboseLog ¶
func SetHzVerboseLog(v bool)
func StringSliceSpilt ¶
func UpgradeGolangProtobuf ¶ added in v0.1.1
func UpgradeGolangProtobuf()
Types ¶
type FlagStringSlice ¶
type FlagStringSlice []string
func (*FlagStringSlice) Set ¶
func (f *FlagStringSlice) Set(value string) error
func (*FlagStringSlice) String ¶
func (f *FlagStringSlice) String() string
Click to show internal directories.
Click to hide internal directories.