1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-16 09:48:28 +02:00

fix incorrect return type in service template (#935)

This commit is contained in:
webliupeng
2021-05-20 17:44:01 +08:00
committed by GitHub
parent 65d8b48f9a
commit 248d30f068
+1 -1
View File
@@ -18,7 +18,7 @@ type {{.Service}}Service struct {
pb.Unimplemented{{.Service}}Server
}
func New{{.Service}}Service() pb.{{.Service}}Server {
func New{{.Service}}Service() *{{.Service}}Service {
return &{{.Service}}Service{}
}
{{ range .Methods }}