uber-go / fx

A dependency injection based application framework for Go.
https://uber-go.github.io/fx/
MIT License
5.72k stars 289 forks source link

doc: Add FAQ page #1160

Closed abhinav closed 7 months ago

abhinav commented 7 months ago

Adds an FAQ page to the Fx documentation, aiming to address frequently asked questions.

This includes two entries that came up at work recently.

Includes a test for the fx.Supply entry because I couldn't find the test for it right away. (I found it in annotated_test.go later but you won't hear me complain about additional tests.)

codecov[bot] commented 7 months ago

Codecov Report

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

Comparison is base (793a644) 98.78% compared to head (15fa6e9) 98.78%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1160 +/- ## ======================================= Coverage 98.78% 98.78% ======================================= Files 30 30 Lines 3057 3057 ======================================= Hits 3020 3020 Misses 30 30 Partials 7 7 ```

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