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.79k stars 246 forks source link

Support map[T]encoding.TextUnmarshaler #323

Open Al2Klimov opened 1 month ago

oxzi commented 1 month ago

Thanks for creating this PR. Just for the record, I have successfully tested it with my code over at https://github.com/Icinga/icinga-go-library/pull/58 after removing the encoding.TextUnmarshaler for my custom map type.

codecov[bot] commented 3 weeks ago

Codecov Report

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

Project coverage is 100.00%. Comparing base (aa50469) to head (c392b72). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #323 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 3 3 Lines 499 516 +17 ========================================= + Hits 499 516 +17 ```

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