Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
toddkazakov
· 8y ago · 0 comments
How about just using the builder pattern?
Comments
[–]
_drFaust
8y ago
Not familiar with go or that pattern but is this a good example?
https://gist.github.com/vaskoz/10073335
[–]
toddkazakov
OP
8y ago
Yes, that's a good example
[–]
baby
8y ago
have an initSomething() that returns an initialized struct.