[WIP] pkg/generator: add cmd/main.go generator#22
[WIP] pkg/generator: add cmd/main.go generator#22fanminshi wants to merge 2 commits intooperator-framework:masterfrom fanminshi:generate_main
Conversation
|
this depends on #21 because it uses some constants defined in that pr. |
|
I would suggest to use go library First of all, the library itself is very confusing. Looking at the code: Every line of code needs explanation in order to understand it. The template should just describe it itself. Second, the |
|
@hongchaodeng I can give |
|
I understand that |
|
@hongchaodeng let me explore other code generation tools. |
|
close this in favor of #29 |
add github.com/dave/jennifer/jen dependency.
use Jennifer code generator to auto generate *.go files.
generate cmd/main.go as part of operator application generation.