Skip to content

refactor: replace interface{} with any in type declarations#4249

Merged
appleboy merged 1 commit into
gin-gonic:masterfrom
flc1125:interface-to-any
May 26, 2025
Merged

refactor: replace interface{} with any in type declarations#4249
appleboy merged 1 commit into
gin-gonic:masterfrom
flc1125:interface-to-any

Conversation

@flc1125
Copy link
Copy Markdown
Contributor

@flc1125 flc1125 commented May 25, 2025

  • Update golangci.yml to use any instead of interface{} in gofmt
  • Modify debug.go, plain.go, and render_test.go to use any type
  • Improve code readability and follow modern Go conventions

- Update golangci.yml to use 'any' instead of 'interface{}' in gofmt
- Modify debug.go, plain.go, and render_test.go to use 'any' type
- Improve code readability and follow modern Go conventions

Signed-off-by: Flc <[email protected]>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.92%. Comparing base (3dc1cd6) to head (fb41e23).
Report is 125 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4249      +/-   ##
==========================================
- Coverage   99.21%   98.92%   -0.30%     
==========================================
  Files          42       44       +2     
  Lines        3182     3432     +250     
==========================================
+ Hits         3157     3395     +238     
- Misses         17       26       +9     
- Partials        8       11       +3     
Flag Coverage Δ
?
--ldflags="-checklinkname=0" -tags sonic 98.85% <100.00%> (?)
-tags go_json 98.85% <100.00%> (?)
-tags nomsgpack 98.90% <100.00%> (?)
go-1.18 ?
go-1.19 ?
go-1.20 ?
go-1.21 ?
go-1.23 98.92% <100.00%> (?)
go-1.24 98.92% <100.00%> (?)
macos-latest 98.92% <100.00%> (-0.30%) ⬇️
ubuntu-latest 98.92% <100.00%> (-0.30%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@appleboy appleboy added this to the v1.11 milestone May 26, 2025
@appleboy appleboy merged commit 848e1cd into gin-gonic:master May 26, 2025
24 of 25 checks passed
@flc1125 flc1125 deleted the interface-to-any branch May 26, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants