ggicci / httpin

🍡 HTTP Input for Go - HTTP Request from/to Go Struct (Bi-directional Data Binding between Go Struct and http.Request)
https://ggicci.github.io/httpin/
MIT License
315 stars 23 forks source link

feat: adjust API #68

Closed ggicci closed 1 year ago

ggicci commented 1 year ago
  1. Removed AdaptDecoder, AdaptDecoderFunc
  2. Expose DecoderFunc[T]
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.02% :warning:

Comparison is base (e75f7bc) 96.46% compared to head (609b7ce) 96.45%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #68 +/- ## ========================================== - Coverage 96.46% 96.45% -0.02% ========================================== Files 21 21 Lines 623 621 -2 ========================================== - Hits 601 599 -2 Misses 15 15 Partials 7 7 ``` | [Flag](https://app.codecov.io/gh/ggicci/httpin/pull/68/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ggicci) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/ggicci/httpin/pull/68/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ggicci) | `96.45% <100.00%> (-0.02%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ggicci#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files Changed](https://app.codecov.io/gh/ggicci/httpin/pull/68?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ggicci) | Coverage Δ | | |---|---|---| | [decoder.go](https://app.codecov.io/gh/ggicci/httpin/pull/68?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ggicci#diff-ZGVjb2Rlci5nbw==) | `96.77% <100.00%> (ø)` | | | [decoderadaptor.go](https://app.codecov.io/gh/ggicci/httpin/pull/68?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ggicci#diff-ZGVjb2RlcmFkYXB0b3IuZ28=) | `79.68% <100.00%> (-0.62%)` | :arrow_down: | | [file.go](https://app.codecov.io/gh/ggicci/httpin/pull/68?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ggicci#diff-ZmlsZS5nbw==) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.

:loudspeaker: Have feedback on the report? Share it here.