-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add gotmpl tool #280
Add gotmpl tool #280
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #280 +/- ##
==========================================
+ Coverage 58.95% 58.99% +0.03%
==========================================
Files 44 46 +2
Lines 1988 2024 +36
==========================================
+ Hits 1172 1194 +22
- Misses 686 698 +12
- Partials 130 132 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇
Why
Follows #275 (next iteration)
Fixes #276
Towards addressing open-telemetry/opentelemetry-go#3846
Towards fixing open-telemetry/opentelemetry-go#3548
What
Add
gotmpl
tool that can be used withgo:generate
.This tool is currently needed for https://github.com/open-telemetry/opentelemetry-go. See: open-telemetry/opentelemetry-go#3846. We want to use it automate sharing internal code (more in
README.md
) without introducing a lot of manual code duplication.Other
Do we want to use it for
internal/repo
andinternal/syncerror
? Personally, I think there is no big need as these APIs looks pretty stable. And AFAIK the tools are bumped together. On the other hand, it may be good to dogfood for the sake of consistency across OTel Go repositories. Because I cannot find a clear answer myself, I can simply create a follow-up PR once this one is merged. It should be easier for the reviewers to decide.