From 6a8638fc85244c656e61ea2dae75d80c5d4bedaa Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Tue, 12 Oct 2021 22:13:14 +0800 Subject: [PATCH] chore: refine rpc template in goctl (#1129) --- tools/goctl/rpc/generator/gencall.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/goctl/rpc/generator/gencall.go b/tools/goctl/rpc/generator/gencall.go index 1e97f932..85a37f02 100644 --- a/tools/goctl/rpc/generator/gencall.go +++ b/tools/goctl/rpc/generator/gencall.go @@ -18,15 +18,15 @@ import ( const ( callTemplateText = `{{.head}} - package {{.filePackage}} import ( "context" - "google.golang.org/grpc" + {{.package}} "github.com/tal-tech/go-zero/zrpc" + "google.golang.org/grpc" ) type (