# Functions
CheckJWTValid returns true if the JWT token is well-formed and not expired This function does not validate the JWT token beyond checking if it's still valid.
EnsureFolder creates a folder if it doesn't exist already.
ExitWithError prints and error then terminates the app.
FileExists returns true if the path exists on disk and it's not a folder.
FolderExists returns true if the path exists on disk and it's a folder.
FormatBytes formats file sizes in human-readable format Source: https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format/.
IsRegularFile returns true if the path is a file.
LaunchBrowser opens a web browser at a specified URL.
PathExists returns true if the path exists on disk.
RemoveContents remove all contents within a directory Source: https://stackoverflow.com/a/33451503/192024.
RequestJSON fetches a JSON document from the web.
RequestRaw fetches a document from the web and returns the stream as is.
SliceContainsString returns true if the slice of strings contains a certain string.
TarBZ2 creates a tar.bz2 archive from a folder Adapted from: https://gist.github.com/sdomino/e6bc0c98f87843bc26bb.
# Constants
Error types.
Error types.
Error types.
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
# Structs
NodeStore class for managing the node store.
RequestOpts contains the parameters for the RequestJSON function.