News for hackers. Stuff that matters.
Re:Basic project template for golang, slightly opinionated by shanemhansen on Monday December 19, 2016 @12:05AM (#13209581)
I noticed they default to creating a main function that runs os.Exit(0). I recommend not doing that because it stops any potential deferred actions from running. It's not required for their simple main() func to run correctly, but I feel it's a good habit to get into.
Re:Basic project template for golang, slightly opinionated by lacion on Monday December 19, 2016 @12:17AM (#13209615)
thanks for the comment, i just made some changes to reflect that.