-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
test(cmd/gf): gf gen ctrl
with -merge
option
#3490
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1: Add the Req/Res structure to the existing file 2: Add the Req/Res structure to the new file
gqcn
requested changes
Apr 16, 2024
gqcn
changed the title
Improved: Optimized call flow when using gen ctrl -merge
enhance: Apr 16, 2024
gf gen ctrl
with -merge
option
…tten to one file when generated
gqcn
reviewed
Apr 17, 2024
gqcn
approved these changes
Apr 17, 2024
gqcn
changed the title
enhance:
test(cmd/gf): Jun 27, 2024
gf gen ctrl
with -merge
optiongf gen ctrl
with -merge
option
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
改进:使用gen ctrl -merge参数时,可以一次将所有待生成的ctrl写入到文件,而不是分次写入。
添加两个测试分支,均使用 -merge 参数
1:将 Req/Res 结构体追加到现有文件末尾
2:将 Req/Res 结构体添加到新文件