util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2016 License: GPL-3.0, GPL-3.0 Imports: 11 Imported by: 86

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AcceptedExtensions = make(map[string]bool)

Functions

func CreateDirIn

func CreateDirIn(dir string, dirName string) (string, error)

func CreateFileIn

func CreateFileIn(dir string, fileName string, data []byte) (string, error)

func Download added in v0.3.2

func Download(url, targetDir string) (string, error)

Download fires a HTTP GET request to download a resource to target directory

func DownloadAndUnzip added in v0.3.0

func DownloadAndUnzip(downloadLink string, tempDir string) (string, error)

DownloadAndUnzip downloads the zip file from given download link and unzips it. Returns the unzipped file path.

func FindAllNestedDirs added in v0.1.3

func FindAllNestedDirs(dir string) []string

func FindConceptFilesIn

func FindConceptFilesIn(dir string) []string

FindConceptFilesIn Finds the concept files in specified directory

func FindSpecFilesIn

func FindSpecFilesIn(dir string) []string

FindSpecFilesIn Finds spec files in the given directory

func GetPathToFile added in v0.1.7

func GetPathToFile(path string) string

func GetSpecFiles added in v0.1.7

func GetSpecFiles(specSource string) []string

func IsConcept added in v0.1.3

func IsConcept(path string) bool

IsConcept Returns true if concept file

func IsDir added in v0.1.3

func IsDir(path string) bool

func IsProcessRunning added in v0.3.2

func IsProcessRunning(pid int) bool

IsProcessRunning checks if the process with the given process id is still running

func IsSpec added in v0.1.3

func IsSpec(path string) bool

IsSpec Returns true if spec file file

func IsValidConceptExtension

func IsValidConceptExtension(path string) bool

IsValidConceptExtension Checks if the path has a concept file extension

func IsValidSpecExtension

func IsValidSpecExtension(path string) bool

IsValidSpecExtension Checks if the path has a spec file extension

func IsWindows added in v0.1.7

func IsWindows() bool

IsWindows returns if Gauge is running on Windows

func NumberOfCores added in v0.1.7

func NumberOfCores() int

NumberOfCores returns the number of CPU cores on the system

func Remove added in v0.3.0

func Remove(dir string)

func RemoveTempDir added in v0.3.0

func RemoveTempDir()

func SaveFile added in v0.1.7

func SaveFile(fileName string, content string, backup bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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