Hacker News new | ask | show | jobs
by _drFaust 2807 days ago
Not familiar with go or that pattern but is this a good example? https://gist.github.com/vaskoz/10073335
2 comments

Yes, that's a good example
have an initSomething() that returns an initialized struct.