fileutils

package
v1.0.406 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2024 License: MulanPSL-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

View Source
const FILE_GOMOD = "go.mod"

Variables

This section is empty.

Functions

func CheckConfigFileExist

func CheckConfigFileExist(root, f string) bool

func CheckFileExist

func CheckFileExist(filename string) bool

func Dir added in v1.0.405

func Dir(pathfile string) string

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 GetPkg added in v1.0.112

func GetPkg(pkgPath string) (*build.Package, error)

func GetPkgAllFilesPath added in v1.0.91

func GetPkgAllFilesPath(pkgPath string) ([]string, error)

获取第三方包下所有文件的相对路径

func GetPkgPath added in v1.0.91

func GetPkgPath(pkgPath string) (string, error)

func SetRootPkgEnv added in v1.0.112

func SetRootPkgEnv(p string)

func TryFileExist

func TryFileExist(filename string) bool

func UnZip

func UnZip(zipFile string, destPath string) error

func Zip

func Zip(srcPath string, destFile string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL