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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
when running
goctl api neworgoctl rpc new, you can specify-styleto generate withgo_zeronaming style(greet_handler.go,greet_logic.go,service_context.go). the default value of-styleshould 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 onlygofumptinLintsection. butgofumtis just a stricter gofmt, maybe we can addgolangci-lintto the workflowBeta Was this translation helpful? Give feedback.
All reactions