Documentation ¶
Index ¶
- func CheckFileOwner(file, uname string) bool
- func ChmodDirR(dname string, mode os.FileMode) error
- func ChownDirR(dname, uname string) error
- func ChownFile(fname, uname string) error
- func Contains(sl []interface{}, v interface{}) bool
- func ContainsInt(sl []int, v int) bool
- func ContainsInt64(sl []int64, v int64) bool
- func ContainsString(sl []string, v string) bool
- func CopyDir(src, dst string) error
- func CopyFile(src, dst string) error
- func DownloadCode(dst, src string) error
- func GetHostName() (string, error)
- func GetLocalIP() ([]string, error)
- func GetMd5String(str string) string
- func IsDir(path string) bool
- func IsExecutable(path string) bool
- func IsExists(path string) bool
- func IsFile(path string) bool
- func IsUser(uname string) bool
- func ReadUUIDFromFile(uuidfile string) (string, error)
- func RemoveContents(dir string) error
- func Unzip(archive, target string) error
- func WalkOnce(root string, walkFn filepath.WalkFunc) error
- func WriteUUID2File(uuidfile string) error
- func Zipit(source, target, filter string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsInt ¶
func ContainsInt64 ¶
func ContainsString ¶
func DownloadCode ¶
从http链接下载代码 http://lp:0124@127.0.0.1/hfp/tst.tar.gz
func GetHostName ¶
func GetLocalIP ¶
func GetMd5String ¶
func ReadUUIDFromFile ¶
func WriteUUID2File ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.