modify the goctl gensvc template (#323)

This commit is contained in:
FengZhang
2020-12-30 10:05:26 +08:00
committed by GitHub
parent 25cab2f273
commit a926cb514f

View File

@@ -15,12 +15,12 @@ const svcTemplate = `package svc
import {{.imports}}
type ServiceContext struct {
c config.Config
Config config.Config
}
func NewServiceContext(c config.Config) *ServiceContext {
return &ServiceContext{
c:c,
Config:c,
}
}
`