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.
[ Parent
| on HN ]