Hacker News new | ask | show | jobs
by tdrd 3157 days ago
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?

1 comments

That's a good point, and I've since updated the blog post and the code to use anonymous interfaces instead.