Pārlūkot izejas kodu

modify the goctl gensvc template (#323)

FengZhang 4 gadi atpakaļ
vecāks
revīzija
a926cb514f
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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,
 	}
 }
 `