소스 검색

modify the goctl gensvc template (#323)

FengZhang 4 년 전
부모
커밋
a926cb514f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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,
 	}
 }
 `