Skip to content

syntax/typedjson: avoid MethodByName - #961

Merged
mvdan merged 1 commit into
masterfrom
typedjson-reflect
Jan 7, 2023
Merged

mvdan merged 1 commit into
masterfrom
typedjson-reflect

Conversation

@mvdan

@mvdan mvdan commented Jan 3, 2023

Copy link
Copy Markdown
Owner

(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 requested review from riacataquian and theclapp January 3, 2023 20:50
@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

⌂ 换网址