https://dave.cheney.net/2017/06/11/go-without-package-scoped-variables Interesting exploration of avoiding all global state. Perhaps main() should take stdin, stdout and stderr as args?