Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify documentation on fx.Annotate #926

Merged
merged 3 commits into from Aug 19, 2022

Conversation

sywhang
Copy link
Contributor

@sywhang sywhang commented Aug 19, 2022

Some people are getting confused why fx.Annotate doesn't work with
fx.In or fx.Out struct and may think this is a bug.

Clarify in the documentation that this is not meant to be used with
fx.In or fx.Out structs - it replaces their usages.

Some people are getting confused why fx.Annotate doesn't work with
fx.In or fx.Out struct and may think this is a bug.

Clarify in the documentation that this is not meant to be used with
fx.In or fx.Out structs - it replaces their usages.
@codecov
Copy link

codecov bot commented Aug 19, 2022

Codecov Report

Merging #926 (fb366f7) into master (f54e56f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #926   +/-   ##
=======================================
  Coverage   98.72%   98.72%           
=======================================
  Files          30       30           
  Lines        1332     1332           
=======================================
  Hits         1315     1315           
  Misses         11       11           
  Partials        6        6           
Impacted Files Coverage Δ
annotated.go 99.69% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sywhang sywhang merged commit c2ccec5 into uber-go:master Aug 19, 2022
@sywhang sywhang deleted the clarify-annotate-doc branch August 19, 2022 23:12
sywhang added a commit to sywhang/fx that referenced this pull request Oct 11, 2022
* Clarify documentation on fx.Annotate

Some people are getting confused why fx.Annotate doesn't work with
fx.In or fx.Out struct and may think this is a bug.

Clarify in the documentation that this is not meant to be used with
fx.In or fx.Out structs - it replaces their usages.

* some formatting fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants