Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tdrd
on Oct 22, 2017
|
parent
|
context
|
favorite
| on:
Reusable and type-safe options for Go APIs
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
on Oct 23, 2017
[–]
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:
Have you suggested this to the etcd maintainers?