refactor: rename from tal-tech to zeromicro for goctl (#1481)
This commit is contained in:
@@ -5,10 +5,10 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
conf "github.com/tal-tech/go-zero/tools/goctl/config"
|
||||
"github.com/tal-tech/go-zero/tools/goctl/rpc/parser"
|
||||
"github.com/tal-tech/go-zero/tools/goctl/util/format"
|
||||
"github.com/tal-tech/go-zero/tools/goctl/util/pathx"
|
||||
conf "github.com/zeromicro/go-zero/tools/goctl/config"
|
||||
"github.com/zeromicro/go-zero/tools/goctl/rpc/parser"
|
||||
"github.com/zeromicro/go-zero/tools/goctl/util/format"
|
||||
"github.com/zeromicro/go-zero/tools/goctl/util/pathx"
|
||||
)
|
||||
|
||||
const configTemplate = `package config
|
||||
@@ -23,7 +23,7 @@ type Config struct {
|
||||
// GenConfig generates the configuration structure definition file of the rpc service,
|
||||
// which contains the zrpc.RpcServerConf configuration item by default.
|
||||
// You can specify the naming style of the target file name through config.Config. For details,
|
||||
// see https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/config.go
|
||||
// see https://github.com/zeromicro/go-zero/tree/master/tools/goctl/config/config.go
|
||||
func (g *DefaultGenerator) GenConfig(ctx DirContext, _ parser.Proto, cfg *conf.Config) error {
|
||||
dir := ctx.GetConfig()
|
||||
configFilename, err := format.FileNamingFormat(cfg.NamingFormat, "config")
|
||||
|
||||
Reference in New Issue
Block a user