Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/com: Must helper for config #10

Open
progrium opened this issue Feb 6, 2017 · 0 comments
Open

pkg/com: Must helper for config #10

progrium opened this issue Feb 6, 2017 · 0 comments

Comments

@progrium
Copy link
Contributor

progrium commented Feb 6, 2017

We don't support a way to make Options required, this is up to the user. The pattern becomes check if value is the zero value for the type on app start and error. To encourage this, maybe providing a Must helper that checks for zero value for a given option and returns an error (panic seems a bit strong, but maybe its fine).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant