Comment Comment by bigpigeon yes, codegen have better performance than reflectbut I think text/template to generate code is not really goodit hard to read and error-proneit is more like a powerful c-macroI think use go/ast to implement c++ likes template is other way parent bigpigeon 8 years ago
but I think text/template to generate code is not really good
it hard to read and error-prone
it is more like a powerful c-macro
I think use go/ast to implement c++ likes template is other way