-
Notifications
You must be signed in to change notification settings - Fork 442
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
opaque Config defaults #47
Comments
Yea, I still can't say that this is the best we can do but I do appreciate the consistency. We lost type safety, but we didn't gain or lose anything when it comes to things being invalid only at runtime. What we gained is one consistent way to set them (which is also capable or accepting serialized values from config files or over the wire). The docs are a good suggestion. |
updated in bitly/master@43ff0ca |
The type safety is one thing, but i'm having issues loosing static analysis being able to catch typos much much more. I'm really thinking about ways we can export variables from the config structure, and still leverage the |
I'm all ears 😄 |
How about leaving everything exported in the config object so you can initialize fields directly while continuing to leverage everything |
It's not obvious from go-doc documentation what the default config values are, or what time some are, and there is no way to introspect them at runtime. Both seem like they should exist.
The text was updated successfully, but these errors were encountered: