Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Modernize remaining interface{} to any in context.go #2824

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

Open
vishr wants to merge 2 commits into master
base: master
Choose a base branch
Loading
from modernize-remaining-interface-any

Conversation

@vishr
Copy link
Member

@vishr vishr commented Sep 16, 2025

Summary

Completes the modernization of context.go by replacing all remaining interface{} types with any.

Changes:

  • Updated Context interface method signatures (23 occurrences)
  • Updated implementation method signatures
  • Methods affected: Get, Set, Bind, Validate, Render, JSON*, XML*, JSONP

Benefits:

  • Improved code readability
  • Follows Go 1.18+ best practices
  • Consistent with modern Go codebases

Test plan

  • All existing tests pass
  • Linting passes
  • No behavioral changes

🤖 Generated with Claude Code

vishr and others added 2 commits September 15, 2025 20:41
Uses Go 1.22+ range over int syntax for cleaner iteration.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Completes the modernization of context.go by replacing remaining
interface{} types with any in:
- Context interface method signatures
- Implementation method signatures
Improves code readability and follows Go 1.18+ best practices.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /