Hacker News new | past | comments | ask | show | jobs | submit login

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?




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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: