Documentation
¶
Index ¶
- func ConvertString(s string) string
- func DownloadFile(url string, location string) error
- func Exec(command string) (output string, err error)
- func ExecRealtime(command string, method func(line string)) error
- func ExecRealtimeControl(command string, method func(line string), signal chan rune, ...) error
- func ExecRealtimePrint(command string) error
- func ExecRealtimePrintGBK(command string) error
- func FormatAbsPath(s string) string
- func FormatPath(s string) string
- func GetBinaryPath(binary string) (string, error)
- func GetHttpData(url string) (string, error)
- func Getwd() (wd string)
- func IsFileExisted(path string) bool
- func IsNonASCII(str string) bool
- func Pause(a chan rune)
- func Quit(a chan rune)
- func ReadAll(path string) (string, error)
- func Resume(a chan rune)
- func ScanCRandLF(data []byte, atEOF bool) (advance int, token []byte, err error)
- func Test()
- func WriteFast(filePath string, content string) error
- func XCopy(from, to string) error
- func XMove(from, to string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecRealtime ¶
执行一次command指令且自定义方法处理每行结果
func ExecRealtimeControl ¶ added in v0.0.3
func ExecRealtimeControl(command string, method func(line string), signal chan rune, winPssuspend string) error
winPssuspend留空
func ExecRealtimePrintGBK ¶
执行时解决cmd chcp 936 乱码问题 P.S. !win好像不用
func ScanCRandLF ¶ added in v0.0.3
自定义Scanner分割的方式,\n和\r都分割
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.