Explorar o código

modify the goctl gensvc template (#323)

FengZhang %!s(int64=4) %!d(string=hai) anos
pai
achega
a926cb514f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      tools/goctl/rpc/generator/gensvc.go

+ 2 - 2
tools/goctl/rpc/generator/gensvc.go

@@ -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,
 	}
 }
 `