News for hackers. Stuff that matters.
Re:Reusable and type-safe options for Go APIs by tdrd on Sunday October 22, 2017 @03:14PM (#15528400)
The downside to this solution is that the concrete option types are exported. I believe it's possible to return unexported types from exported functions, which would solve this, but that golint complains about that pattern.

Have you suggested this to the etcd maintainers?

Re:Reusable and type-safe options for Go APIs by derekchiang on Monday October 23, 2017 @11:48AM (#15534023)
That's a good point, and I've since updated the blog post and the code to use anonymous interfaces instead.