feat: rename module from tal-tech to zeromicro (#1413)

This commit is contained in:
Kevin Wan
2022-01-04 15:51:32 +08:00
committed by GitHub
parent e267d94ee1
commit a91c3907a8
277 changed files with 578 additions and 578 deletions

View File

@@ -136,7 +136,7 @@ OPTIONS:
--proto_path value, -I value native command of protoc, specify the directory in which to search for imports. [optional]
--go_opt value native command of protoc-gen-go, specify the mapping from proto to go, eg --go_opt=proto_import=go_package_import. [optional]
--dir value, -d value the target path of the code
--style value the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]
--style value the file naming format, see [https://github.com/zeromicro/go-zero/tree/master/tools/goctl/config/readme.md]
--idea whether the command execution environment is from idea plugin. [optional]
```

View File

@@ -26,7 +26,7 @@ import (
{{.package}}
"github.com/tal-tech/go-zero/zrpc"
"github.com/zeromicro/go-zero/zrpc"
"google.golang.org/grpc"
)

View File

@@ -13,7 +13,7 @@ import (
const configTemplate = `package config
import "github.com/tal-tech/go-zero/zrpc"
import "github.com/zeromicro/go-zero/zrpc"
type Config struct {
zrpc.RpcServerConf

View File

@@ -22,7 +22,7 @@ import (
{{.imports}}
"github.com/tal-tech/go-zero/core/logx"
"github.com/zeromicro/go-zero/core/logx"
)
type {{.logicName}} struct {

View File

@@ -21,9 +21,9 @@ import (
{{.imports}}
"github.com/tal-tech/go-zero/core/conf"
"github.com/tal-tech/go-zero/core/service"
"github.com/tal-tech/go-zero/zrpc"
"github.com/zeromicro/go-zero/core/conf"
"github.com/zeromicro/go-zero/core/service"
"github.com/zeromicro/go-zero/zrpc"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)

View File

@@ -65,7 +65,7 @@ func TestDefaultProtoParse_Option(t *testing.T) {
p := NewDefaultProtoParser()
data, err := p.Parse("./test_option.proto")
assert.Nil(t, err)
assert.Equal(t, "github.com/tal-tech/go-zero", data.GoPackage)
assert.Equal(t, "github.com/zeromicro/go-zero", data.GoPackage)
assert.Equal(t, "go_zero", data.PbPackage)
}

View File

@@ -2,7 +2,7 @@ syntax = "proto3";
package stream;
option go_package = "github.com/tal-tech/go-zero";
option go_package = "github.com/zeromicro/go-zero";
message placeholder {}