You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when running goctl api new or goctl rpc new, you can specify -style to generate with go_zero naming style(greet_handler.go, greet_logic.go, service_context.go). the default value of -style should be go_zero. if the goal is be consistent and simplify code, just remove other options.
Currenty in .github/workflows/go.yml, there is only gofumpt in Lint section. but gofumt is just a stricter gofmt, maybe we can add golangci-lint to the workflow
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
when running
goctl api new
orgoctl rpc new
, you can specify-style
to generate withgo_zero
naming style(greet_handler.go
,greet_logic.go
,service_context.go
). the default value of-style
should bego_zero
. if the goal is be consistent and simplify code, just remove other options.golang/go#36060 (comment)
Currenty in
.github/workflows/go.yml
, there is onlygofumpt
inLint
section. butgofumt
is just a stricter gofmt, maybe we can addgolangci-lint
to the workflowBeta Was this translation helpful? Give feedback.
All reactions