Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: Use go:fix inline for deprecated ptr funcs#4034

Merged
gmlewis merged 2 commits intogoogle:masterfrom
alexandear-org:chore/gofix-inline
Feb 25, 2026
Merged

chore: Use go:fix inline for deprecated ptr funcs#4034
gmlewis merged 2 commits intogoogle:masterfrom
alexandear-org:chore/gofix-inline

Conversation

@alexandear
Copy link
Contributor

Bool, Int, Int64, and String were replaced by Ptr in #3355. This PR adds //go:fix inline directive to these functions, allowing users to replace the deprecated ones across the codebase using the simple command:

go fix -inline ./...

See https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/inline#hdr-Analyzer_inline

@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.08%. Comparing base (6252d35) to head (f4e79f0).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
github/github.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4034      +/-   ##
==========================================
- Coverage   94.10%   94.08%   -0.02%     
==========================================
  Files         207      207              
  Lines       19207    19207              
==========================================
- Hits        18074    18071       -3     
- Misses        935      938       +3     
  Partials      198      198              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmlewis gmlewis changed the title chore: Use go:fix inline for deprecated ptr funcs chore: Use go:fix inline for deprecated ptr funcs Feb 25, 2026
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @alexandear!
LGTM.
Merging.

@gmlewis gmlewis merged commit 879c78f into google:master Feb 25, 2026
8 of 11 checks passed
@alexandear alexandear deleted the chore/gofix-inline branch February 25, 2026 08:09
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.

2 participants