Skip to content
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

syntax/typedjson: avoid MethodByName #961

Merged
merged 1 commit into from
Jan 7, 2023
Merged

syntax/typedjson: avoid MethodByName #961

merged 1 commit into from
Jan 7, 2023

Conversation

mvdan
Copy link
Owner

@mvdan mvdan commented Jan 3, 2023

(see commit message)

We only used it with static method names,
so we can use type assertions to reach those methods instead.
This is easier as we avoid more reflection,
and does not throw off the linker's dead code elimination.

See dominikh/go-tools#1348.
@mvdan mvdan merged commit 698a968 into master Jan 7, 2023
@mvdan mvdan deleted the typedjson-reflect branch January 7, 2023 13:39
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