-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: add projectPkg and servicePkg parameters to gen api template(go module) #3786
base: master
Are you sure you want to change the base?
feature: add projectPkg and servicePkg parameters to gen api template(go module) #3786
Conversation
@kevwan Hi, I hope you can help me see if this change is reasonable and correct. |
…aowu9/go-zero into feature/gen-api-template-add-rootPkg
b1c1854
to
1385184
Compare
Go module variable has already open for go template on api/rpc generating. pls see #3798 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files |
Issue: #3785
In actual application scenarios, we should allow users to use the two parameters projectPkg and rootPkg when customizing templates.
add parameters to template:
handler example:
other example:
just handler is {{.ServicePkg}} and {{.ProjectPkg}}