package
0.0.0-20231219024801-0770b8d9fa00
Repository: https://github.com/psyomn/ecophagy.git
Documentation: pkg.go.dev
# Functions
ConfigDir prefers $HOME/.config, regardles of XDG stuff (for now).
DataPath will return the path of the ecophagy project config folder.
No description provided by the author
DownloadFile will download a file from a url to a designated path.
DownloadIfNotExist will check for a filename, and if it doesn't exist, will attempt to download it by a provided url.
Editor will return the editor environment variable, "EDITOR".
No description provided by the author
No description provided by the author
No description provided by the author
FileList will return a list of files, by walking through a directory tree.
No description provided by the author
FileToLines will fully read a file, and return it as individual lines.
FileToMd5Sum will calculate the hash of a particular file contents.
No description provided by the author
HasEditor will check if there is an editor set.
HasHome will check if the HOME environment variable is set.
No description provided by the author
PathExists will check if a path exists.
ReadSpaceConfig reads a text file, which each line has two continuous strings, delimited by one blank space so the configuration would look something like this:
blahblah 1234 uhoh 3214
This is used by `randparty`, and the reason I'm not using a json file for configuration is because I wanted something that is more user friendly (this was being used by some non technical people).
# Constants
No description provided by the author
# Variables
No description provided by the author