top | item 13208693

Basic project template for golang, slightly opinionated

22 points| lacion | 9 years ago |github.com

10 comments

order
[+] shanemhansen|9 years ago|reply
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.
[+] lacion|9 years ago|reply
thanks for the comment, i just made some changes to reflect that.
[+] marcus_holmes|9 years ago|reply
really? Three (known) dependencies before I even start? Plus Python?

The wonderful thing I'm loving about Golang is that I can reduce dependencies. Put the ones I need in a vendor directory. Edit those files to remove their dependencies for edge cases I don't need in my project.

Less is more!

[+] chank|9 years ago|reply
Needing python to create a golang project template...
[+] mwpmaybe|9 years ago|reply
"S/he wrote his own command-line utility to create projects from templates? Why didn't s/he just use cookiecutter?"
[+] karmacoda|9 years ago|reply
I can't even begin to grasp how this is HN front page. No offence, but in the world of tech is this really in the top 30 most interesting things?
[+] lacion|9 years ago|reply
the project has now been updated and is now a lot less opinionated except for a few things.