Skip to content

Refactor to use reflect.TypeFor #944

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cuiweixie
Copy link

Closes:

@cuiweixie cuiweixie requested a review from a team as a code owner August 22, 2025 01:32
@Copilot Copilot AI review requested due to automatic review settings August 22, 2025 01:32
Copy link
Contributor

@Copilot 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 refactors the code to use the newer reflect.TypeFor function instead of the older reflect.TypeOf(...).Elem() pattern for obtaining type information.

  • Replaces reflect.TypeOf((*json.Unmarshaler)(nil)).Elem() with reflect.TypeFor[json.Unmarshaler]()

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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