Totally a matter of opinion here, but handing errors back from various functions will make it easier to read main and figure out where the issues could arise. I also have the error messages pushed to stdError instead of stdOut, and all os.Exit calls are now in main, so that if we ever decide to handle these errors in a single way, it'd be a much smaller refactor.
Totally a matter of opinion here, but handing errors back from various functions will make it easier to read
main
and figure out where the issues could arise. I also have the error messages pushed to stdError instead of stdOut, and all os.Exit calls are now in main, so that if we ever decide to handle these errors in a single way, it'd be a much smaller refactor.Cool project!