Documentation
¶
Index ¶
- func ClearDir(dirPath string) error
- func CommonPrefix(strs ...string) string
- func CreateDir(dirPath string) error
- func FileStat(filePath string) (stat os.FileInfo, exists bool, err error)
- func FormatDirName(s3Dir string) string
- func FormatDuration(d time.Duration) string
- func GetAllRegexNameGroups(re *regexp.Regexp, str string) (map[string]string, bool)
- func GetRegexMatchGroup(re *regexp.Regexp, str string, group int) (string, bool)
- func GetRegexNameGroup(re *regexp.Regexp, str, groupName string) (string, bool)
- func Map[I, O any](s []I, fn func(I) O) []O
- func Min[T cmp.Ordered](x T, y ...T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonPrefix ¶
CommonPrefix returns the common root of all the given strings.
func CreateDir ¶
CreateDir creates a directory at the given path. If it already exists, its content is cleared. If a file exists at this path, is it overridden.
func FileStat ¶
FileStat executes a stat against the file at the given path. If the file does not exist, no error but false is returned.
func FormatDirName ¶
func FormatDuration ¶
func GetAllRegexNameGroups ¶
func GetRegexMatchGroup ¶
func GetRegexNameGroup ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.