1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 }}