Skip to content

Apply modernize#588

Merged
raphael merged 1 commit intomainfrom
modernize
Aug 1, 2025
Merged

Apply modernize#588
raphael merged 1 commit intomainfrom
modernize

Conversation

@tchssk
Copy link
Copy Markdown
Member

@tchssk tchssk commented Aug 1, 2025

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.75%. Comparing base (193dc1c) to head (4a5867c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #588   +/-   ##
=======================================
  Coverage   85.75%   85.75%           
=======================================
  Files          39       39           
  Lines        2282     2282           
=======================================
  Hits         1957     1957           
  Misses        300      300           
  Partials       25       25           
Flag Coverage Δ
micro 85.75% <100.00%> (ø)

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.

@tchssk tchssk marked this pull request as ready for review August 1, 2025 11:16
@tchssk tchssk requested a review from Copilot August 1, 2025 11:16
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modernizes Go code by replacing interface{} with the more idiomatic any type alias introduced in Go 1.18, and updates loop constructs to use range expressions where appropriate.

  • Replaces all instances of interface{} with any across function parameters, struct fields, and type declarations
  • Updates traditional for loops to use for range N syntax for simple iteration patterns
  • Updates dependency versions in go.work.sum

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
mock/mock.go Replace interface{} with any in Mock struct fields and method signatures
mock/mock_test.go Update test function parameter from interface{} to any
log/log.go Replace interface{} with any in logging function variadic parameters
log/log_test.go Update loop syntax and replace interface{} with any in test data
log/http.go Update endpoint function signature to use any
log/http_test.go Update test endpoint function signature
log/grpc.go Replace interface{} with any in gRPC interceptor function signatures
log/format.go Update JSON array formatting function parameter
log/format_test.go Replace interface{} with any in test slice declarations
log/fields.go Update KV struct and Fields type to use any
log/adapt.go Replace interface{} with any in adapter function signatures and update loop syntax
debug/options.go Update FormatFunc type and function signatures
debug/grpc.go Replace interface{} with any in gRPC interceptor signatures
debug/debug.go Update endpoint wrapper function signature
debug/debug_test.go Update test function parameter type
go.work.sum Add new dependency version entries

@raphael
Copy link
Copy Markdown
Member

raphael commented Aug 1, 2025

This is great, thank you!

@raphael raphael merged commit 7462e43 into main Aug 1, 2025
7 checks passed
@raphael raphael deleted the modernize branch August 1, 2025 18:18
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.

3 participants