-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Marshal() and env #41
Comments
It also doesn't use flags, apparently. This seems like a bug. Is there any reason for Marshal to ignore the env/flag overrides that affect GetString and friends? |
Disclaimer: I spent ~10 minutes reading the code, might be wrong. Seems like the Marshal function is missing the stages that marshal the env. variables and the flags. Furthermore, the order of precedence seems to be wrong: the function sets it as It looks like it would be enough just to add those stages and reorder the marshaling. |
#44 fixes this, closing as fixed. |
Why doesn't the Marshal func use environment variables?
The text was updated successfully, but these errors were encountered: