jmattheis / goverter

Generate type-safe Go converters by simply defining an interface
https://goverter.jmattheis.de/
MIT License
496 stars 46 forks source link

add global option for ignoring unexported fields #32

Closed ewhauser closed 1 year ago

ewhauser commented 1 year ago

Strawman PR for #31

codecov-commenter commented 1 year ago

Codecov Report

Base: 93.34% // Head: 93.15% // Decreases project coverage by -0.18% :warning:

Coverage data is based on head (0ad21fa) compared to base (6b3ff1b). Patch coverage: 88.05% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #32 +/- ## ========================================== - Coverage 93.34% 93.15% -0.19% ========================================== Files 23 23 Lines 1202 1213 +11 ========================================== + Hits 1122 1130 +8 - Misses 60 63 +3 Partials 20 20 ``` | [Impacted Files](https://codecov.io/gh/jmattheis/goverter/pull/32?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis) | Coverage Δ | | |---|---|---| | [cmd/goverter/main.go](https://codecov.io/gh/jmattheis/goverter/pull/32/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-Y21kL2dvdmVydGVyL21haW4uZ28=) | `0.00% <0.00%> (ø)` | | | [builder/struct.go](https://codecov.io/gh/jmattheis/goverter/pull/32/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-YnVpbGRlci9zdHJ1Y3QuZ28=) | `100.00% <100.00%> (ø)` | | | [generator/extends.go](https://codecov.io/gh/jmattheis/goverter/pull/32/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-Z2VuZXJhdG9yL2V4dGVuZHMuZ28=) | `91.94% <100.00%> (+0.05%)` | :arrow_up: | | [generator/generate.go](https://codecov.io/gh/jmattheis/goverter/pull/32/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-Z2VuZXJhdG9yL2dlbmVyYXRlLmdv) | `93.93% <100.00%> (+0.18%)` | :arrow_up: | | [generator/generator.go](https://codecov.io/gh/jmattheis/goverter/pull/32/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-Z2VuZXJhdG9yL2dlbmVyYXRvci5nbw==) | `97.77% <100.00%> (+0.03%)` | :arrow_up: | | [runner.go](https://codecov.io/gh/jmattheis/goverter/pull/32/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-cnVubmVyLmdv) | `92.85% <100.00%> (+0.26%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.