We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go1.22.12 windows/amd64
v2.9.0
Option Yes
使用 gf gen ctrl 生成时,使用配置
gf gen ctrl
gfcli: gen: ctrl: merge: true
将已生成的 Controller 换行
func (c *ControllerV1) Hello( ctx context.Context, req *v1.HelloReq, ) (res *v1.HelloRes, err error) { g.RequestFromCtx(ctx).Response.Writeln("Hello World!") return }
换行的 Controller 会重新生成一个
func (c *ControllerV1) Hello( ctx context.Context, req *v1.HelloReq, ) (res *v1.HelloRes, err error) { g.RequestFromCtx(ctx).Response.Writeln("Hello World!") return } func (c *ControllerV1) Hello(ctx context.Context, req *v1.HelloReq) (res *v1.HelloRes, err error) { return nil, gerror.NewCode(gcode.CodeNotImplemented) }
只生成一次
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Go version
go1.22.12 windows/amd64
GoFrame version
v2.9.0
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
使用
gf gen ctrl
生成时,使用配置将已生成的 Controller 换行
换行的 Controller 会重新生成一个
What did you see happen?
What did you expect to see?
只生成一次
The text was updated successfully, but these errors were encountered: