Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR modernizes the Go codebase by replacing all instances of the legacy interface{} type with the modern any alias, which was introduced in Go 1.18. The changes were made using gofmt -w -r 'interface{} -> any' ., ensuring consistency across the codebase.
Changes:
- Replaced all occurrences of
interface{}withanyin type declarations, function signatures, and variable declarations - Updated code comments to reflect the new type nomenclature
- Cleaned up trailing whitespace in README.md
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| go/types.go | Updated struct field types and type aliases from interface{} to any |
| go/session.go | Updated function parameter and variable types from interface{} to any |
| go/jsonrpc.go | Updated JSON-RPC struct types and function signatures from interface{} to any |
| go/generated_session_events.go | Updated generated code struct fields and utility function signatures from interface{} to any |
| go/e2e/session_test.go | Updated test code type declarations from interface{} to any |
| go/definetool_test.go | Updated test assertions and type casts from interface{} to any |
| go/definetool.go | Updated function return types and comments from interface{} to any |
| go/client_test.go | Updated test parameter types from interface{} to any |
| go/client.go | Updated function signatures, variable declarations, and map types from interface{} to any |
| go/README.md | Updated code examples from interface{} to any and removed trailing whitespace |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
friggeri
previously approved these changes
Jan 30, 2026
Collaborator
|
@qmuntal I merged your other PRs, this one has a merge conflict |
Member
Author
Member
Author
|
CI failures are unrelated to this PR. Will fix them in a follow-up PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
interface{}is a relic form the past. Rewrite it toanyusinggofmt -w -r 'interface{} -> any' ..