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?