Hacker News new | ask | show | jobs
by toddkazakov 2803 days ago
How about just using the builder pattern?
1 comments

Not familiar with go or that pattern but is this a good example? https://gist.github.com/vaskoz/10073335
Yes, that's a good example
have an initSomething() that returns an initialized struct.