Skip to content

refactor: use reflect.TypeFor#3409

Open
stemlaud wants to merge 1 commit intolibp2p:masterfrom
stemlaud:master
Open

refactor: use reflect.TypeFor#3409
stemlaud wants to merge 1 commit intolibp2p:masterfrom
stemlaud:master

Conversation

@stemlaud
Copy link

Try to use better api reflect.TypeFor recommend by Go Team instead of reflect.TypeOf when we have known the type.

More info golang/go#60088

@stemlaud
Copy link
Author

@MarcoPolo Hi, Could you please review this PR at your convenience? Thank you very much.

Signed-off-by: stemlaud <stemlaud@outlook.com>
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