Y
Hacker News
new
|
ask
|
show
|
jobs
by
toddkazakov
2803 days ago
How about just using the builder pattern?
1 comments
_drFaust
2802 days ago
Not familiar with go or that pattern but is this a good example?
https://gist.github.com/vaskoz/10073335
link
toddkazakov
2801 days ago
Yes, that's a good example
link
baby
2801 days ago
have an initSomething() that returns an initialized struct.
link