env icon indicating copy to clipboard operation
env copied to clipboard

Don't touch struct fields without `env` tag

Open corani opened this issue 1 year ago • 0 comments

After https://github.com/caarlos0/env/pull/306 it appears all nil fields in the struct will be initialized to an empty value, even fields without an env tag.

I believe this initialization should only happen if (1) the field has an env tag and (2) the specified environment variable exists (with 1 being critical and 2 debatable).

corani avatar May 23 '24 05:05 corani