package
0.64.11
Repository: https://github.com/grokify/mogo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AbsFilepath returns an absolute filepath, using the user's current / home directory if indicated in the filepath string.
No description provided by the author
No description provided by the author
CreateFileWithLines creates a file and writes lines to it.
No description provided by the author
No description provided by the author
EmptyAll will delete all contents of a directory, leaving the provided directory.
No description provided by the author
No description provided by the author
No description provided by the author
EnvMap returns a map[string]string of environment variables that match a regular expression.
Exists checks whether the named filepath exists or not for a file or directory.
FileInfoModAge returns the file last modification age as a time.Duration.
No description provided by the author
No description provided by the author
FileModAge returns a time.Duration representing the age of the named file from FileInfo.ModTime().
No description provided by the author
Filenames returns a list of filenames for files only (no directories).
No description provided by the author
No description provided by the author
FinfosToFilepaths returns a slice of string from a directory and sli=ce of `os.FileInfo`.
GetFileInfo returns an os.FileInfo from a filepath.
No description provided by the author
No description provided by the author
IsFile verifies a path exists and is a file.
MustFileSize returns value of `FileInfo.Size()` which is length in bytes for regular files; system-dependent for others.
No description provided by the author
NewFileInfoMoreFromPath returns a FileInfoMore struct populatig both FileInfo and ModAge (last modification time).
No description provided by the author
NewLine uses `os.PathSeparator` to determine the newline characters for the local system.
No description provided by the author
No description provided by the author
ReadDirRxSubmatch takes a directory, regular expression and boolean to indicate whether to include zero size files and returns the greatest of a single match in the regular expression.
ReadDirRxSubmatchCaptureGreatest takes a directory, regular expression and returns the greatest of a single submatch in the regular expression.
ReadDirRxSubmatchCaptures takes a directory, regular expression and returns the greatest of captures from the regular expression.
No description provided by the author
ReadDirSplit returnsa slides of `os.FileInfo` for directories and files.
No description provided by the author
ReadFileJSON reads and unmarshals a file.
No description provided by the author
No description provided by the author
SortDirEntriesModTime sorts `DirEntries` by last modified time.
No description provided by the author
No description provided by the author
No description provided by the author
VisitPath visit a directory and all subdirectories, executing the supplied `visitFunc` on each.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
FileInfoMore provides a struct hold FileInfo with additional information.
No description provided by the author

# Type aliases

DirEntries provides utility functions for `[]os.DirEntry`.
No description provided by the author
No description provided by the author