Documentation ¶
Index ¶
- Variables
- func CreateDirIn(dir string, dirName string) (string, error)
- func CreateFileIn(dir string, fileName string, data []byte) (string, error)
- func DownloadAndUnzip(downloadLink string, tempDir string) (string, error)
- func FindAllNestedDirs(dir string) []string
- func FindConceptFilesIn(dir string) []string
- func FindSpecFilesIn(dir string) []string
- func GetPathToFile(path string) string
- func GetSpecFiles(specSource string) []string
- func IsConcept(path string) bool
- func IsDir(path string) bool
- func IsSpec(path string) bool
- func IsValidConceptExtension(path string) bool
- func IsValidSpecExtension(path string) bool
- func IsWindows() bool
- func NumberOfCores() int
- func Remove(dir string)
- func RemoveTempDir()
- func SaveFile(fileName string, content string, backup bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var AcceptedExtensions = make(map[string]bool)
Functions ¶
func DownloadAndUnzip ¶ added in v0.3.0
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 FindConceptFilesIn ¶
FindConceptFilesIn Finds the concept files in specified directory
func FindSpecFilesIn ¶
FindSpecFilesIn Finds spec files in the given directory
func GetPathToFile ¶ added in v0.1.7
func GetSpecFiles ¶ added in v0.1.7
func IsValidConceptExtension ¶
IsValidConceptExtension Checks if the path has a concept file extension
func IsValidSpecExtension ¶
IsValidSpecExtension Checks if the path has a spec file extension
func NumberOfCores ¶ added in v0.1.7
func NumberOfCores() int
func RemoveTempDir ¶ added in v0.3.0
func RemoveTempDir()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.