Documentation ¶
Index ¶
- Variables
- func Command(commandName string, params []string) bool
- func Compress(files []*os.File, dest string) error
- func CopyDir(srcPath string, destPath string) error
- func CopyExecDir(srcPath string, destPath string) error
- func CopyExecFile(file, desc string)
- func CopyFile(src, dest string) (w int64, err error)
- func CreateFile(name string) (*os.File, error)
- func DeCompress(tarFile, dest string) error
- func DownlaodFile(filepath string, filename string) error
- func ExecCommand(command string, args []string) (error, string, string)
- func PathExists(path string) (bool, error)
- func ReadAllIntoMemory(filename string) (content []byte, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Separator = string(os.PathSeparator)
)
Functions ¶
func CopyDir ¶
*
- 拷贝文件夹,同时拷贝文件夹中的文件
- @param srcPath 需要拷贝的文件夹路径: D:/test
- @param destPath 拷贝到的位置: D:/backup/
func CopyExecDir ¶
*
- 拷贝文件夹,同时拷贝文件夹中的文件
- @param srcPath 需要拷贝的文件夹路径: D:/test
- @param destPath 拷贝到的位置: D:/backup/
func CopyExecFile ¶
func CopyExecFile(file, desc string)
func DownlaodFile ¶
func PathExists ¶
func ReadAllIntoMemory ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.