6 ms·
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
by tdrd 9y 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?
- derekchiang 9y agoThat's a good point, and I've since updated the blog post and the code to use anonymous interfaces instead.