Documentation
¶
Overview ¶
Package common collection of small utils
Index ¶
- Variables
- func ChdirToFile(file string) error
- func CheckSkip(line string) (skip bool)
- func ExecuteOsCommand(cmdArgs []string, stdIn io.Reader) (stdOut string, stdErr string, err error)
- func GetEnv(key, fallback string) string
- func ReadFileByLine(filename string) ([]string, error)
- func ReadFileToString(filename string) (string, error)
- func RemoveSpace(s string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var TestData string
TestData directory for working files
View Source
var TestDir string
TestDir working dir for tests
Functions ¶
func ChdirToFile ¶
ChdirToFile change working directory to the filename
func ExecuteOsCommand ¶
ExecuteOsCommand runs an OS command and returns output
func ReadFileByLine ¶
ReadFileByLine read a file and return array of lines
func ReadFileToString ¶
ReadFileToString read a file and return a string
func RemoveSpace ¶
RemoveSpace deletes all spaces and newlines from string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.