package
0.0.0-20241020195444-9af4de160b1e
Repository: https://github.com/m0rf30/yap.git
Documentation: pkg.go.dev
# Functions
CheckGO checks if the GO executable is already installed.
CheckWritable checks if a binary file is writeable.
Chmod changes the file mode of the specified path.
Contains checks if a string is present in an array of strings.
Create creates a new file at the specified path.
CreateWrite writes the given data to the file specified by the path.
Download downloads a file from the given URL and saves it to the specified destination.
Exec executes a command in the specified directory.
ExecOutput executes a command with the given arguments and returns its output as a string.
Exists checks if a file or directory exists at the given path.
ExistsMakeDir checks if a directory exists at the given path and creates it if it doesn't.
Filename returns the filename from a given path.
GetArchitecture returns the corresponding pacman architecture for the current GOARCH.
GetDirSize calculates the size of a directory in kilobytes.
GetFileType uses readelf to determine the type of the binary file.
GitClone clones a Git repository from the given sourceItemURI to the specified dloadFilePath.
GOSetup sets up the Go environment.
IsEmptyDir checks if a directory is empty.
isStaticLibrary checks if the binary is a static library.
MkdirAll creates a directory and all its parent directories.
Open opens a file at the specified path and returns a pointer to the file and an error.
PullContainers pulls the specified container image.
RemoveAll removes a file or directory and any children it contains.
RunScript runs a shell script.
StringifyArray generates a string representation of an array in the given syntax.
StringifyAssign returns a string representation of the given *syntax.Assign node.
StringifyFuncDecl converts a syntax.FuncDecl node to a string representation.
StripFile strips the binary file using the strip command.
StripLTO strips LTO-related sections from the binary file.
Unarchive is a function that takes a source file and a destination.
# Variables
Logger is the default logger with information level logging.
MultiPrinter is the default multi printer.