Documentation ¶
Index ¶
- Variables
- func Bytes2Human(num float64) string
- func GetFileMD5(filename string) (string, error)
- func GetIPRange(ip_start, ip_end string) ([]string, error)
- func Md5(c string) string
- func ParseCommandArgs(s string) []string
- func ParsePort(portString string) []int
- func RunCmdWithTimeout(cmd string, args []string, timeout int) ([]byte, error)
- func RunShell(cmd string) ([]byte, error)
- func TrimSpaceAndNewLine(str string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRunTimeout = errors.New("command execution timeouts")
Functions ¶
func Bytes2Human ¶
func GetFileMD5 ¶
func GetIPRange ¶
func ParseCommandArgs ¶
func RunCmdWithTimeout ¶
如果timeout为0, 则没有超时
func TrimSpaceAndNewLine ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.