Does Go team have a preference on codegen over reflect style?

97 views
Skip to first unread message

ag9920

unread,
Oct 10, 2022, 7:17:42 AM10/10/22
to golang-nuts
There're many reflect-based mock and inject tools, and they are quite helpful.

But I noticed that the famous official mock tool mockgen and dependency injection tool wire both follow codegen style.

So just out of curiosity, I want to know the underlying reason for that, is codegen better than reflect? 
Reply all
Reply to author
Forward
0 new messages