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

fix: prefer using "di:" field tags to control injection options to avoid conflicting with tags used by other libraries. #38

Merged
merged 1 commit into from
Jul 21, 2021

Conversation

chirino
Copy link
Contributor

@chirino chirino commented Jul 16, 2021

fix: prefer using "di:" field tags to control injection options to avoid conflicting with tags used by other libraries.

old style is still supported but generates a deprecation warning like:

2021/07/16 13:40:19 Deprecation warning: please replace the field tags on 'Server.Tags' with: di:"http=true,server=true"

this fixes #37

conflicting with tags used by other libraries.

old style is still supported but generates a deprecation warning like:
```
2021/07/16 13:40:19 Deprecation warning: please replace the field tags
on 'Server.Tags' with: di:"http=true,server=true"
```
@codecov
Copy link

codecov bot commented Jul 16, 2021

Codecov Report

Merging #38 (6e61d8a) into master (c2359b6) will increase coverage by 0.00%.
The diff coverage is 95.55%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #38   +/-   ##
=======================================
  Coverage   95.06%   95.06%           
=======================================
  Files          16       16           
  Lines         689      730   +41     
=======================================
+ Hits          655      694   +39     
- Misses         23       24    +1     
- Partials       11       12    +1     
Impacted Files Coverage Δ
inject.go 88.13% <95.45%> (+3.72%) ⬆️
node.go 92.30% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c2359b6...6e61d8a. Read the comment docs.

@defval
Copy link
Owner

defval commented Jul 21, 2021

Looks good to me

@defval defval merged commit 52dd6f7 into defval:master Jul 21, 2021
@chirino chirino deleted the issue37 branch July 22, 2021 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change how Injected structs are tagged
2 participants