# Functions

CheckForError() - exits with code 1 and output an error (if there is an error).
CleanupModuleName() - cleans up a module name.
ClearConsole() - clears the console.
CloseWithError() - exits with code 1 and output an error.
CreateProgressBar() - creates a simple progress bar with default settings.
CreateShellCommand() - creates a new shell command based on the operating system without running it.
CreateShellCommand() - creates a new shell command without running it.
DownloadFromUrl() - downloads data from URL.
EnsureMaxSliceLength() - ensures that the length of an array is not greater than a maximum and returns a truncated copy; otherwise the input array.
GenerateColorsFromString() - generates unique background and foregrund colors from a string.
GetAIChatTemperature() - returns the value for AI chat conversation temperature.
GetBestChromaFormatterName() - returns the best syntax highlight formatter for the console.
GetBestChromaStyleName() - returns the best syntax highlight style for the console.
GetBoolFlag() - returns a boolean command line flag value without error.
GetChatPromptSugesstions() - returns a list of commands and their descriptions for the AI chat in a very generic and platform independent form.
GetCurRLimit() - returns the `Cur` value of a `syscall.Rlimit` instance if possible.
GetDefaultAIChatModel() - returns the name of the default AI chat model.
GetEnvVar() - returns, if found, the value of an existing environment variable by its name ignoring case sensitivity.
GetNumberOfOpenFilesByPid() - returns the number of open files by pid.
GetShell()- returns the name of the current shell.
HashSHA256() - hashes a byte array with SHA256 and returns the result as hex string.
IndexOfString() - returns the zero-based index of a string in a string array or -1 if not found.
IsDirExisting() - checks if path is an existing directory.
IsFileExisting() - checks if path is an existing file.
IsMacOS() - checks if current operating system is MacOS or not.
IsWindows() - checks if current operating system is Microsoft Windows or not.
ListFiles() - checks if current operating system is Microsoft Windows or not.
LoadFromSTDINIfAvailable() - loads data from STDIN if available.
OpenUrl() - opens a URL by the default application handler.
RemoveDuplicatesInStringList() - removes duplicates in string list.
RunCommand() - runs a command and exists on error.
SerializeStringToJSON() - serializes a string to JSON.
Slugify() - slugifies a string.
SplitText() - splits text into chunks of a maximum size.
ToDataUri() - serializes given data to data URI.
ToUrlForOpenHandler() - converts an input URL to a URL which can be opened by handler of the current operating system.
UpdateUsageSparkline() - updates color of and data of an widgets.Sparkline item that represents "usage data".

# Structs

ChatPromptSuggestion stores data for an element that is returned by GetChatPromptSugesstions().
No description provided by the author