News for hackers. Stuff that matters.
Re:Go 1.11 got me to stop ignoring Go by toddkazakov on Tuesday October 09, 2018 @03:58PM (#18179326)
How about just using the builder pattern?
Re:Go 1.11 got me to stop ignoring Go by _drFaust on Wednesday October 10, 2018 @01:25PM (#18187030)
Not familiar with go or that pattern but is this a good example? https://gist.github.com/vaskoz/10073335
Re:Go 1.11 got me to stop ignoring Go by toddkazakov on Thursday October 11, 2018 @11:08AM (#18194111)
Yes, that's a good example
Re:Go 1.11 got me to stop ignoring Go by baby on Thursday October 11, 2018 @06:22AM (#18192258)
have an initSomething() that returns an initialized struct.