News for hackers. Stuff that matters.
Re:Show HN: A sample project for Golang by emourujarvi on Wednesday November 28, 2018 @07:35AM (#18550986)
Thanks, I started learning golang few weeks ago, and had a problem with how to structure my code.
Re:Show HN: A sample project for Golang by shivylp on Wednesday November 28, 2018 @09:17AM (#18551580)
Welcome to Golang!. I'm glad you found this useful. But i advise you to look at other patterns as well. This is just one of the patterns that can be used and may not be suitable for all usecases. For example, for smaller projects a much simpler layout with main or importable package at the root would work really well. Just to give an idea, my other project https://github.com/spy16/radium follows a very simple straightforward layout.