I decided to extend the functionality to support unexported fields.
I have one main reason for this.
After I load a structure from envvars, I want to perform the steps that further create the state. I load several variables and then calculate a new one from them, but there is no reason to have the originals public. Another example is that I parse the value of an enum from a private string variable. etc...
// ENV_LOG_LEVEL=info
// my.strLogLevel is unexported and loaded from ENV_LOG_LEVEL
// exported my.LogLevel is NOT string and calculated from unexported one
my.LogLevel = parseLogLevel(my.strLogLevel)
I decided to extend the functionality to support unexported fields. I have one main reason for this.
Signed-off-by: kuritka kuritka@gmail.com