Documentation
¶
Index ¶
- func CopyDir(src, dst string) error
- func CopyFile(src, dst string) error
- func CopyWithWildcard(srcPattern, dst string) error
- func ExistsFile(path string) bool
- func Fatal(prompt string, errs ...error)
- func FindDirContainingFiles(srcDir string, repoIdentifyFiles []string, skipDirs ...string) (string, error)
- func GetInput(prompt string, defaults ...string) string
- func GetLocalIP() (string, error)
- func GetRootGolangModule() (string, error)
- func IsDir(path string) (string, error)
- func IsDirReadableAndWithFiles(path, fileSuffix string) error
- func IsDirWritable(path string) error
- func IsValidRelativePath(path string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyWithWildcard ¶
CopyWithWildcard 支持通配符的目录复制
func ExistsFile ¶
func FindDirContainingFiles ¶
func FindDirContainingFiles(srcDir string, repoIdentifyFiles []string, skipDirs ...string) (string, error)
FindDirContainingFiles 查找包含指定文件的目录, 返回目录名
func GetLocalIP ¶
func GetRootGolangModule ¶
func IsDirReadableAndWithFiles ¶
IsDirReadableAndWithFiles 检查目录是否可读
func IsValidRelativePath ¶
IsValidRelativePath 检查路径是否为有效的相对路径 允许当前目录("."),但不允许上级目录("..")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.