Skip to content

Use any instead of interface{} (2 findings)#333

Merged
jwilder merged 1 commit into
masterfrom
repo-agent/use-any-instead-of-interface
Jun 22, 2026
Merged

Use any instead of interface{} (2 findings)#333
jwilder merged 1 commit into
masterfrom
repo-agent/use-any-instead-of-interface

Conversation

@jwilder

@jwilder jwilder commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Summary

Addresses the following findings:

  • Use any instead of interface{}: Since Go 1.18, any is the idiomatic alias for interface{}. Use any for readability.

Changes

template.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Verification

  • Use any instead of interface{} — addressed in this change
  • ✅ All tests pass
  • ✅ Build clean
  • 📊 Coverage: 68.5%

Finding: Use any instead of interface{}

@jwilder jwilder left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Code Review (repo-agent)

Straightforward mechanical replacement of interface{} with its built-in alias any. Both changes are semantically identical and improve readability per Go 1.18+ idioms. No behavioral change.

Inline Comments

@jwilder jwilder merged commit f5938ca into master Jun 22, 2026
12 checks passed
@jwilder jwilder deleted the repo-agent/use-any-instead-of-interface branch June 22, 2026 22:45
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.

1 participant