package
0.0.0-20240514053209-5f25c38e1f34
Repository: https://github.com/permafrost-dev/eget.git
Documentation: pkg.go.dev
# Functions
async get the modification time of a filesystem file: Bintime returns the modification time of a file or directory.
Cut is strings.Cut.
No description provided by the author
No description provided by the author
FilenameToAssetFilters takes a filename string and returns a list of inclusive asset filters based on the filename it's used to avoid the need for prompting the user to select an asset on subsequent runs after having selected an asset on the first download.
searches for an asset thaat has the same name as the requested one but ending with .sha256 or .sha256sum.
No description provided by the author
GetRename attempts to guess what to rename 'file' to for an appropriate executable name.
IsDefinitelyNotExec returns true if the file is definitely not an executable.
IsDirectory returns true if the file at 'path' is a directory.
IsErrorNotOf returns true if err is not nil and is not of the type errorCompare.
IsErrorOf returns true if err is not nil and is of the type errorCompare.
IsExec returns true if the file is an executable based on the file name or the file mode (executable bit).
IsGithubURL returns true if s is a URL with github.com as the host.
No description provided by the author
IsLocalFile returns true if the file at 's' exists.
No description provided by the author
IsURL returns true if s is a valid URL.
IsValidRepositoryReference returns true if s is a valid repository reference in the form of "owner/repo".
ModeFrom returns the mode with the executable bit set if the file is an executable.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
check if two interfaces implement the same type.
SetWhen returns the newValue if condition is true, otherwise it returns the original value.
# Variables
No description provided by the author
# Structs
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author