go format with extra rules (#821)

This commit is contained in:
Kevin Wan
2021-07-17 20:51:23 +08:00
committed by GitHub
parent 9b2a279948
commit e47079f0f4
4 changed files with 6 additions and 7 deletions

View File

@@ -74,7 +74,6 @@ func TestRpcGenerate(t *testing.T) {
return strings.Contains(err.Error(), "not in GOROOT") || strings.Contains(err.Error(), "cannot find package")
}())
}
})
// case not in go mod and go path

View File

@@ -83,7 +83,7 @@ func (g *DefaultGenerator) GenLogic(ctx DirContext, proto parser.Proto, cfg *con
return nil
}
func (g *DefaultGenerator) genLogicFunction(serviceName string, goPackage string, rpc *parser.RPC) (string, error) {
func (g *DefaultGenerator) genLogicFunction(serviceName, goPackage string, rpc *parser.RPC) (string, error) {
functions := make([]string, 0)
text, err := util.LoadTemplate(category, logicFuncTemplateFileFile, logicFunctionTemplate)
if err != nil {