caarlos0 / env

A simple, zero-dependencies library to parse environment variables into structs
https://pkg.go.dev/github.com/caarlos0/env/v11
MIT License
4.91k stars 252 forks source link

fix: retract v11.0.1, gate init nil pointers #318

Closed caarlos0 closed 4 months ago

caarlos0 commented 4 months ago

as it would automatically initialize nil pointers.

this retracts that version, and gate this new feature behind an init tag option.

closes #317 closes #310 refs #306 refs #234

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (de7a9cc) to head (205b4b0).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #318 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 3 3 Lines 427 429 +2 ========================================= + Hits 427 429 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.