package
0.1.43
Repository: https://github.com/abdfnx/tran.git
Documentation: pkg.go.dev

# Functions

ArchiveAndCompressFiles tars and gzip-compresses files into a temporary file, returning it along with the resulting size.
source: https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format.
No description provided by the author
No description provided by the author
DecompressAndUnarchiveBytes gzip-decompresses and un-tars files into the current working directory and returns the names and decompressed size of the created files.
DisplayWidth calculates what the rendered width of a string may be.
Traverses files and directories (recursively) for total size in bytes.
GeneratePassword generates a random password prefixed with the supplied id.
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
No description provided by the author
No description provided by the author
No description provided by the author
Truncate shortens a string to fit the maximum display width.
TruncateColumn replaces the first new line character with an ellipsis and shortens a string to fit the maximum display width.
ValidateHostname returns an error if the domain name is not valid source: https://gist.github.com/chmike/d4126a3247a6d9a70922fc0e8b4f4013.
No description provided by the author
No description provided by the author

# Variables

CancelError signals user-initiated cancellation.
SilentError is an error that triggers exit code 1 without any error messaging.

# Structs

FlagError is the kind of error raised in flag processing.

# Type aliases

No description provided by the author