You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have used the lib for building config from env and a file. If I created field as pointer then I thought that it is as optional and it is not bound (nil value). When I set value for pointer field in a config file my logic is gone well, but if I set via env variable then my program throw exception ("unsupported type .")
type Config struct {
optField *MyField `env:"OPT_VALUE"`
}
I think that 'cleanenv' have to implement same logic with env that a config file and this way not provide an unexpected error.
The text was updated successfully, but these errors were encountered:
Hello, I have used the lib for building config from env and a file. If I created field as pointer then I thought that it is as optional and it is not bound (nil value). When I set value for pointer field in a config file my logic is gone well, but if I set via env variable then my program throw exception ("unsupported type .")
I think that 'cleanenv' have to implement same logic with env that a config file and this way not provide an unexpected error.
The text was updated successfully, but these errors were encountered: