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:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user