file

package
v0.0.0-...-16d5029 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HOME_PATH         = os.Getenv("HOME")
	GBT_PATH          = HOME_PATH + "/.gbt"
	GO_DISTRO_PATH    = GBT_PATH + "/go"
	GBT_DISTROS_PATH  = GBT_PATH + "/gbt"
	DEPENDENCIES_PATH = GBT_PATH + "/dep"
	TMP_PATH          = GBT_PATH + "/tmp"
	BUILD_PATH        = "build"
	SRC_PATH          = "src"
	GO_PATH           = os.Getenv("GOPATH")
)

Functions

func And

func And(f1, f2 func(string) bool) func(string) bool

func DownloadUrl

func DownloadUrl(url string, output string) error

func Exec

func Exec(cmd string, args ...string) (string, string, error)

func ExecWithEnv

func ExecWithEnv(cmd string, args []string, env []string) (string, string, error)

func ExistsFile

func ExistsFile(path string) (bool, error)

func ExistsFolder

func ExistsFolder(path string) (bool, error)

func GetFiles

func GetFiles(name string, filter func(string) bool) ([]string, error)

func GetFolderName

func GetFolderName(baseName string, folder string) string

func GetFolders

func GetFolders(name string, recursive bool, filter func(string) bool) ([]string, error)

func IsDirectory

func IsDirectory(info os.FileInfo) bool

func IsFile

func IsFile(info os.FileInfo) bool

func IsGitHubPath

func IsGitHubPath(file string) bool

func IsGoFile

func IsGoFile(file string) bool

func IsGoFolder

func IsGoFolder(name string) bool

func IsGoMainFile

func IsGoMainFile(name string) bool

func IsGoMainFolder

func IsGoMainFolder(name string) bool

func IsGoTestFile

func IsGoTestFile(file string) bool

func UnTarGz

func UnTarGz(zipFileUrl, baseFolder string) error

func Unzip

func Unzip(zipFile, baseFolder string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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