Documentation ¶
Index ¶
- func CheckConfigFileExist(root, f string) bool
- func CheckFileExist(filename string) bool
- func Dir(pathfile string) string
- 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 ReadFileToString(file string) (string, error)
- func ReadSubDirs(rootPath string) ([]string, error)
- func SetRootPkgEnv(p string)
- func TryFileExist(filename string) bool
- func UnZip(zipFile string, destPath string) error
- func WriteBytesFile(filename string, bytes []byte) error
- func Zip(srcPath string, destFile string) error
Constants ¶
This section is empty.
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 ReadFileToString ¶ added in v1.2.5
func ReadSubDirs ¶ added in v1.0.602
func SetRootPkgEnv ¶ added in v1.0.112
func SetRootPkgEnv(p string)
func TryFileExist ¶
func WriteBytesFile ¶ added in v1.2.5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.