helper

package
v0.0.0-...-a6e6698 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IsGnuTar show tar type
	IsGnuTar = false
)

Functions

func CleanHost

func CleanHost(host string) string

CleanHost clean host url ftp://foo.bar.com -> foo.bar.com

func Exec

func Exec(command string, args ...string) (output string, err error)

Exec cli commands

func ExplandHome

func ExplandHome(filePath string) string

ExplandHome ~/foo -> /home/jason/foo

func IsExistsPath

func IsExistsPath(p string) bool

IsExistsPath check path exist

func MkdirP

func MkdirP(dirPath string)

MkdirP like mkdir -p

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL