Documentation ¶
Index ¶
- func CheckFileContent(path, content string) error
- func CheckFileMatches(filepath string, regexes []*regexp.Regexp, skipRegexes []*regexp.Regexp, ...) bool
- func CompilePatterns(patterns []string) ([]*regexp.Regexp, error)
- func ConfigureLogger(enableStdout bool, logFile string) error
- func ConvertRelativePath(path string) (string, error)
- func CopyFile(in, out string) error
- func CreateDirectory(path string) error
- func CreateNamedFolder(filePath string) (string, error)
- func FileExists(path string) bool
- func FindFiles(params FindFilesParams) ([]string, error)
- func FindOpenTcpPort() int
- func GetCurrentHomeDirectory() (string, error)
- func GetLogger(enableStdout bool, logFile string) (*zap.SugaredLogger, error)
- func GetMagic(filepath string) string
- func ResolveLocalBinary(bin string) string
- func ResolveLocalFile(folder string, resolveOs bool) string
- func SafeClose(f *os.File)
- func TimeToString(t time.Time) string
- func UniqueListOfStrings(s []string) []string
- type FindFilesParams
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFileContent ¶
func CheckFileMatches ¶
func ConfigureLogger ¶
func ConvertRelativePath ¶
func CreateDirectory ¶
Create a directory from a given path recursively Skip if directory already exists
func CreateNamedFolder ¶
func FileExists ¶
func FindFiles ¶
func FindFiles(params FindFilesParams) ([]string, error)
func FindOpenTcpPort ¶
func FindOpenTcpPort() int
func GetCurrentHomeDirectory ¶
func ResolveLocalBinary ¶
func ResolveLocalFile ¶
func TimeToString ¶
func UniqueListOfStrings ¶
Types ¶
type FindFilesParams ¶
type Logger ¶
type Logger interface { Errorf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) Fatal(args ...interface{}) Infof(format string, args ...interface{}) Info(args ...interface{}) Warnf(format string, args ...interface{}) Debugf(format string, args ...interface{}) Debug(args ...interface{}) }
Logger represent common interface for logging function
var Log Logger
Click to show internal directories.
Click to hide internal directories.