package
0.0.0-20210220143244-c4d1043c3b71
Repository: https://github.com/wx-chevalier/go-utils.git
Documentation: pkg.go.dev

# Functions

AbsPath expands ENV vars and the ~ character then call Go's Abs.
AppendBytesToFile ...
AppendStringToFile ...
ChangeDirForFunction ...
CopyDir ...
CopyFile ...
CurrentWorkingDirectoryAbsolutePath ...
DownloadAndUnZIP ...
EnsureDirExist ...
ExpandTilde ...
GetFileModeOfFile ..
GetFileName returns the name of the file from a given path or the name of the directory if it is a directory.
GetFilePermissions ..
IsDirExists ...
IsPathExists ...
IsRelativePath ...
NormalizedOSTempDirPath ..
PathCheckAndInfos ..
ReadBytesFromFile ...
No description provided by the author
ReadLongLine - an alternative to bufio.Scanner.Scan, which can't handle long lines.
ReadStringFromFile ...
RemoveAll removes recursively every file on the given paths.
RemoveDir ..
RemoveFile ..
Retrieves the file from the given uri The uri can be a remote url or a file on the local fs This function returns a ReadCloser and it is the responsibility of the caller to close it.
RevokableChangeDir ...
No description provided by the author
No description provided by the author
UnZip ...
UnZIP ...
UserHomeDir ...
WalkLines ...
WalkLinesString ...
WriteBytesToFile ...
WriteBytesToFileWithPermission ...
WriteStringToFile ...
WriteStringToFileWithPermission ...
No description provided by the author
ZipDir ...
ZipFile ...

# Type aliases

WalkLineFn - gets a line as its input if returns an error it stops the walk/reading to break the walk early, without an error, just return io.EOF.