We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I have a question/suggestion, here's the context:
At my work we want to display a message (in stdout for example) when the Parser uses the default value.
Parser
Example:
type A struct { B int `env:"ENV_B" envDefault:"1"` } func main() { a := A{} env.Parse(&a) }
If ENV_B is not defined, the parser will assign 1 to a.B, so is there a proper way to log anything at this moment ? Like a debug message eg:
ENV_B
1
a.B
failed to parse ENV_B, relying on system default variable's value: 1
And if not, could such a feature be implemented ?
Thanks in advance
The text was updated successfully, but these errors were encountered:
something like #185 maybe?
Sorry, something went wrong.
Yeah it's perfect !
Successfully merging a pull request may close this issue.
Hello,
I have a question/suggestion, here's the context:
At my work we want to display a message (in stdout for example) when the
Parser
uses the default value.Example:
If
ENV_B
is not defined, the parser will assign1
toa.B
, so is there a proper way to log anything at this moment ?Like a debug message eg:
And if not, could such a feature be implemented ?
Thanks in advance
The text was updated successfully, but these errors were encountered: