Documentation ¶
Index ¶
- func GetBuildGoPaths() []string
- func GetGOPATH() (gopath string, err error)
- func GetIdlType(path string, pbName ...string) (string, error)
- func GitClone(gitURL, path string) error
- func GitPath(gitURL string) (string, error)
- func InitGoMod(module string) error
- func IsHzNew(outputDir string) bool
- func IsWindows() bool
- func PathExist(path string) (bool, error)
- func ReplaceThriftVersion(idlType string)
- func SearchGoMod(cwd string, recurse bool) (moduleName, path string, found bool)
- func SetHzVerboseLog(v bool)
- func StringSliceSpilt(s []string) []string
- type FlagStringSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBuildGoPaths ¶
func GetBuildGoPaths() []string
GetBuildGoPaths returns the list of Go path directories.
func GetIdlType ¶
GetIdlType is used to return the idl type.
func IsWindows ¶
func IsWindows() bool
IsWindows determines whether the current operating system is Windows
func ReplaceThriftVersion ¶
func ReplaceThriftVersion(idlType string)
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 ¶
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.