go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

Does goctl tpl contain RespType?

Open yigeqiji opened this issue 3 years ago • 5 comments
trafficstars

Does goctl tpl contain RespType? How do I find the variable contained in the *.tpl? Is this confidential? //virtual goctl code //normal var req types.{{.RequestType}} //The error occurs when I use the code like below: var resp types.{{.ResponseType}} I want to know where is the variable for goctl *.tpl.

yigeqiji avatar Jul 22 '22 10:07 yigeqiji

goctl template init

And check the dir .goctl in your HOME directory.

kevwan avatar Jul 23 '22 03:07 kevwan

goctl template init

And check the dir .goctl in your HOME directory.

Thanks a lot, I know how to use it. I mean I want to know where can I see all the goctl template variables, can I customize these variables?

yigeqiji avatar Jul 23 '22 05:07 yigeqiji

Can anyone help with this issue.

yigeqiji avatar Jul 23 '22 05:07 yigeqiji

Variables are all in templates.

kevwan avatar Aug 18 '22 01:08 kevwan

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Mar 20 '24 01:03 github-actions[bot]