If we have a prefix called "env_config" and the following struct tags
for property "Foo", we should expect to see an error message stating
that the required env var "ENV_CONFIG_BAR" is missing and not just
"BAR" since that is the env var being looked up.
type Spec struct {
Foo string `envconfig:"bar" required:"true"`
}
If we have a prefix called "env_config" and the following struct tags for property "Foo", we should expect to see an error message stating that the required env var "ENV_CONFIG_BAR" is missing and not just "BAR" since that is the env var being looked up.
Fixes https://github.com/kelseyhightower/envconfig/issues/199