Documentation ¶
Index ¶
- Constants
- func CheckConfigFileExist(root, f string) bool
- func CheckFileExist(filename string) bool
- func FindRootDir() string
- func FindRootDirGoMod() string
- func FindRootPkg() string
- func GetCurPath() string
- func GetPkg(pkgPath string) (*build.Package, error)
- func GetPkgAllFilesPath(pkgPath string) ([]string, error)
- func GetPkgPath(pkgPath string) (string, error)
- func SetRootPkgEnv(p string)
- func TryFileExist(filename string) bool
- func UnZip(zipFile string, destPath string) error
- func Zip(srcPath string, destFile string) error
Constants ¶
View Source
const FILE_GOMOD = "go.mod"
Variables ¶
This section is empty.
Functions ¶
func CheckConfigFileExist ¶
func CheckFileExist ¶
func FindRootDir ¶
func FindRootDir() string
func FindRootDirGoMod ¶ added in v1.0.60
func FindRootDirGoMod() string
func FindRootPkg ¶ added in v1.0.112
func FindRootPkg() string
func GetCurPath ¶
func GetCurPath() string
func GetPkgAllFilesPath ¶ added in v1.0.91
获取第三方包下所有文件的相对路径
func GetPkgPath ¶ added in v1.0.91
func SetRootPkgEnv ¶ added in v1.0.112
func SetRootPkgEnv(p string)
func TryFileExist ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.