Documentation
¶
Overview ¶
Package util contains helper functions
Index ¶
- func CompileRePattern(pattern string) *regexp.Regexp
- func GetEnvParameter(name string, mandatory bool) string
- func MakeDirIfNotExists(directory string) error
- func RandToken(n int) (string, error)
- func ReadFile(name string) ([]byte, error)
- func ReadLinesFromFile(name string) []string
- func SaveFile(name string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileRePattern ¶
CompileRePattern compiles a string containing a regular expression
func GetEnvParameter ¶
GetEnvParameter returns the value of an environment variable
func MakeDirIfNotExists ¶
MakeDirIfNotExists creates a directory if it does not exist yet
func ReadLinesFromFile ¶
ReadLinesFromFile reads a file and returns a string slice containing the lines
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.