Documentation ¶
Index ¶
- func CreateDir(path string) error
- func Exec(stdout, stderr io.Writer, dir string, name string, arg []string, env []string) (*exec.Cmd, error)
- func FmtVer(ver string) (string, error)
- func IsExist(path string) bool
- func IsNotExist(path string) bool
- func MustDir(path string) string
- func Untar(file, to string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
func Exec( stdout, stderr io.Writer, dir string, name string, arg []string, env []string) (*exec.Cmd, error)
Exec creates a process in background and return the PID of it
func FmtVer ¶
FmtVer converts a version string to SemVer format, if the string is not a valid SemVer and fails to parse and convert it, an error is raised.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.