Documentation
¶
Index ¶
- Variables
- func AbsPath(file_ string) string
- func CmdPath() string
- func CopyFile(src string, dst string)
- func CreatFile(src string, data string)
- func DeleteFile(src string)
- func Execute(command string) int
- func ExecutePath() string
- func ExecuteSilent(command string) int
- func FileLogger(src string)
- func FileLoggerClose()
- func FileLoggerPrintln(v ...interface{})
- func ReadAll(src string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EXECUTE_PATH = ExecutePath() CMD_PATH = CmdPath() )
Functions ¶
func AbsPath ¶
AbsPath 返回文件的绝对路径 移除错误处理 e.g. a.txt -> /home/xxx/a.txt Makefile -> D:/SOFT/CODE/Makefile
func CmdPath ¶
func CmdPath() string
获取当前命令窗口的路径 移除错误处理 e.g. CmdPath() -> /home/xxx CmdPath() -> D:/SOFT/CODE
func DeleteFile ¶
func DeleteFile(src string)
func ExecuteSilent ¶ added in v0.0.2
func FileLogger ¶
func FileLogger(src string)
func FileLoggerClose ¶
func FileLoggerClose()
func FileLoggerPrintln ¶
func FileLoggerPrintln(v ...interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.