From 1d08b5ec027d8e26c5ca4e920f64c71441dbb723 Mon Sep 17 00:00:00 2001 From: xuyang Date: Tue, 30 Apr 2024 23:07:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9mod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app.go | 14 +++++++------- config/argument.go | 6 +++--- config/cmd.go | 6 +++--- generator/client.go | 4 ++-- generator/custom_files.go | 4 ++-- generator/file.go | 2 +- generator/handler.go | 6 +++--- generator/layout.go | 4 ++-- generator/model.go | 8 ++++---- generator/model_test.go | 4 ++-- generator/package.go | 6 +++--- generator/router.go | 2 +- generator/template.go | 6 +++--- generator/template_funcs.go | 2 +- main.go | 4 ++-- protobuf/ast.go | 12 ++++++------ protobuf/plugin.go | 12 ++++++------ protobuf/plugin_test.go | 2 +- protobuf/resolver.go | 4 ++-- protobuf/tags.go | 10 +++++----- test_hz_unix.sh | 2 +- test_hz_windows.sh | 2 +- testdata/protobuf2/api.proto | 2 +- testdata/protobuf2/other/other.proto | 2 +- testdata/protobuf2/other/other_base.proto | 2 +- testdata/protobuf2/psm/base.proto | 2 +- testdata/protobuf2/psm/psm.proto | 2 +- testdata/protobuf3/api.proto | 2 +- testdata/protobuf3/other/other.proto | 2 +- testdata/protobuf3/other/other_base.proto | 2 +- testdata/protobuf3/psm/base.proto | 2 +- testdata/protobuf3/psm/psm.proto | 2 +- thrift/ast.go | 12 ++++++------ thrift/plugin.go | 12 ++++++------ thrift/plugin_test.go | 4 ++-- thrift/resolver.go | 4 ++-- thrift/tag_test.go | 2 +- thrift/tags.go | 8 ++++---- util/data.go | 2 +- util/env.go | 2 +- util/tool_install.go | 4 ++-- 41 files changed, 96 insertions(+), 96 deletions(-) diff --git a/app/app.go b/app/app.go index ead3078..613e649 100644 --- a/app/app.go +++ b/app/app.go @@ -24,13 +24,13 @@ import ( "strings" "github.com/urfave/cli/v2" - "golib.gaore.com/xuy2/gr_hz/config" - "golib.gaore.com/xuy2/gr_hz/generator" - "golib.gaore.com/xuy2/gr_hz/meta" - "golib.gaore.com/xuy2/gr_hz/protobuf" - "golib.gaore.com/xuy2/gr_hz/thrift" - "golib.gaore.com/xuy2/gr_hz/util" - "golib.gaore.com/xuy2/gr_hz/util/logs" + "golib.gaore.com/GaoreGo/gr_hz/config" + "golib.gaore.com/GaoreGo/gr_hz/generator" + "golib.gaore.com/GaoreGo/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/protobuf" + "golib.gaore.com/GaoreGo/gr_hz/thrift" + "golib.gaore.com/GaoreGo/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/util/logs" ) // global args. MUST fork it when use diff --git a/config/argument.go b/config/argument.go index 7bd4d6d..f229e24 100644 --- a/config/argument.go +++ b/config/argument.go @@ -23,9 +23,9 @@ import ( "strings" "github.com/urfave/cli/v2" - "golib.gaore.com/xuy2/gr_hz/meta" - "golib.gaore.com/xuy2/gr_hz/util" - "golib.gaore.com/xuy2/gr_hz/util/logs" + "golib.gaore.com/GaoreGo/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/util/logs" ) type Argument struct { diff --git a/config/cmd.go b/config/cmd.go index 27904ed..42a0801 100644 --- a/config/cmd.go +++ b/config/cmd.go @@ -24,9 +24,9 @@ import ( "strings" "syscall" - "golib.gaore.com/xuy2/gr_hz/meta" - "golib.gaore.com/xuy2/gr_hz/util" - "golib.gaore.com/xuy2/gr_hz/util/logs" + "golib.gaore.com/GaoreGo/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/util/logs" ) func lookupTool(idlType string) (string, error) { diff --git a/generator/client.go b/generator/client.go index 2739b19..b48c4e8 100644 --- a/generator/client.go +++ b/generator/client.go @@ -20,8 +20,8 @@ import ( "path/filepath" "strings" - "golib.gaore.com/xuy2/gr_hz/generator/model" - "golib.gaore.com/xuy2/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/generator/model" + "golib.gaore.com/GaoreGo/gr_hz/util" ) type ClientMethod struct { diff --git a/generator/custom_files.go b/generator/custom_files.go index b23b007..fc8701a 100644 --- a/generator/custom_files.go +++ b/generator/custom_files.go @@ -24,8 +24,8 @@ import ( "strings" "text/template" - "golib.gaore.com/xuy2/gr_hz/util" - "golib.gaore.com/xuy2/gr_hz/util/logs" + "golib.gaore.com/GaoreGo/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/util/logs" ) type FilePathRenderInfo struct { diff --git a/generator/file.go b/generator/file.go index 935ca71..56ee146 100644 --- a/generator/file.go +++ b/generator/file.go @@ -22,7 +22,7 @@ import ( "path/filepath" "strings" - "golib.gaore.com/xuy2/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/util" ) type File struct { diff --git a/generator/handler.go b/generator/handler.go index 38c3a9b..6250e7a 100644 --- a/generator/handler.go +++ b/generator/handler.go @@ -23,9 +23,9 @@ import ( "path/filepath" "strings" - "golib.gaore.com/xuy2/gr_hz/generator/model" - "golib.gaore.com/xuy2/gr_hz/util" - "golib.gaore.com/xuy2/gr_hz/util/logs" + "golib.gaore.com/GaoreGo/gr_hz/generator/model" + "golib.gaore.com/GaoreGo/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/util/logs" ) type HttpMethod struct { diff --git a/generator/layout.go b/generator/layout.go index f4ab1bc..b624227 100644 --- a/generator/layout.go +++ b/generator/layout.go @@ -25,8 +25,8 @@ import ( "reflect" "strings" - "golib.gaore.com/xuy2/gr_hz/meta" - "golib.gaore.com/xuy2/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/util" "gopkg.in/yaml.v2" ) diff --git a/generator/model.go b/generator/model.go index d1c3ca3..781897a 100644 --- a/generator/model.go +++ b/generator/model.go @@ -22,10 +22,10 @@ import ( "strings" "text/template" - "golib.gaore.com/xuy2/gr_hz/generator/model" - "golib.gaore.com/xuy2/gr_hz/generator/model/golang" - "golib.gaore.com/xuy2/gr_hz/meta" - "golib.gaore.com/xuy2/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/generator/model" + "golib.gaore.com/GaoreGo/gr_hz/generator/model/golang" + "golib.gaore.com/GaoreGo/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/util" ) //---------------------------------Backend---------------------------------- diff --git a/generator/model_test.go b/generator/model_test.go index a2f67e5..680a6c6 100644 --- a/generator/model_test.go +++ b/generator/model_test.go @@ -20,8 +20,8 @@ import ( "testing" "text/template" - "golib.gaore.com/xuy2/gr_hz/generator/model" - "golib.gaore.com/xuy2/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/generator/model" + "golib.gaore.com/GaoreGo/gr_hz/meta" ) type StringValue struct { diff --git a/generator/package.go b/generator/package.go index 0f17c64..6fa22cd 100644 --- a/generator/package.go +++ b/generator/package.go @@ -24,9 +24,9 @@ import ( "reflect" "text/template" - "golib.gaore.com/xuy2/gr_hz/generator/model" - "golib.gaore.com/xuy2/gr_hz/meta" - "golib.gaore.com/xuy2/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/generator/model" + "golib.gaore.com/GaoreGo/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/util" "gopkg.in/yaml.v2" ) diff --git a/generator/router.go b/generator/router.go index cf328bb..28f4136 100644 --- a/generator/router.go +++ b/generator/router.go @@ -25,7 +25,7 @@ import ( "sort" "strings" - "golib.gaore.com/xuy2/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/util" ) type Router struct { diff --git a/generator/template.go b/generator/template.go index 6f3761b..e2a05f1 100644 --- a/generator/template.go +++ b/generator/template.go @@ -25,9 +25,9 @@ import ( "strings" "text/template" - "golib.gaore.com/xuy2/gr_hz/meta" - "golib.gaore.com/xuy2/gr_hz/util" - "golib.gaore.com/xuy2/gr_hz/util/logs" + "golib.gaore.com/GaoreGo/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/util/logs" ) var DefaultDelimiters = [2]string{"{{", "}}"} diff --git a/generator/template_funcs.go b/generator/template_funcs.go index c1d974e..f16ed6f 100644 --- a/generator/template_funcs.go +++ b/generator/template_funcs.go @@ -21,7 +21,7 @@ import ( "text/template" "github.com/Masterminds/sprig/v3" - "golib.gaore.com/xuy2/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/util" ) var funcMap = func() template.FuncMap { diff --git a/main.go b/main.go index 20f3cf8..e08d8a0 100644 --- a/main.go +++ b/main.go @@ -19,8 +19,8 @@ package main import ( "os" - "golib.gaore.com/xuy2/gr_hz/app" - "golib.gaore.com/xuy2/gr_hz/util/logs" + "golib.gaore.com/GaoreGo/gr_hz/app" + "golib.gaore.com/GaoreGo/gr_hz/util/logs" ) func main() { diff --git a/protobuf/ast.go b/protobuf/ast.go index 31dd20c..db6f5f0 100644 --- a/protobuf/ast.go +++ b/protobuf/ast.go @@ -23,12 +23,12 @@ import ( "strings" "github.com/jhump/protoreflect/desc" - "golib.gaore.com/xuy2/gr_hz/generator" - "golib.gaore.com/xuy2/gr_hz/generator/model" - "golib.gaore.com/xuy2/gr_hz/meta" - "golib.gaore.com/xuy2/gr_hz/protobuf/api" - "golib.gaore.com/xuy2/gr_hz/util" - "golib.gaore.com/xuy2/gr_hz/util/logs" + "golib.gaore.com/GaoreGo/gr_hz/generator" + "golib.gaore.com/GaoreGo/gr_hz/generator/model" + "golib.gaore.com/GaoreGo/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/protobuf/api" + "golib.gaore.com/GaoreGo/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/util/logs" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" diff --git a/protobuf/plugin.go b/protobuf/plugin.go index 7c24988..67ce849 100644 --- a/protobuf/plugin.go +++ b/protobuf/plugin.go @@ -54,12 +54,12 @@ import ( "path/filepath" "strings" - "golib.gaore.com/xuy2/gr_hz/config" - "golib.gaore.com/xuy2/gr_hz/generator" - "golib.gaore.com/xuy2/gr_hz/generator/model" - "golib.gaore.com/xuy2/gr_hz/meta" - "golib.gaore.com/xuy2/gr_hz/util" - "golib.gaore.com/xuy2/gr_hz/util/logs" + "golib.gaore.com/GaoreGo/gr_hz/config" + "golib.gaore.com/GaoreGo/gr_hz/generator" + "golib.gaore.com/GaoreGo/gr_hz/generator/model" + "golib.gaore.com/GaoreGo/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/util/logs" gengo "google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/proto" diff --git a/protobuf/plugin_test.go b/protobuf/plugin_test.go index 9909f23..4823faa 100644 --- a/protobuf/plugin_test.go +++ b/protobuf/plugin_test.go @@ -21,7 +21,7 @@ import ( "strings" "testing" - "golib.gaore.com/xuy2/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/meta" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/types/pluginpb" ) diff --git a/protobuf/resolver.go b/protobuf/resolver.go index 60dacc4..0663132 100644 --- a/protobuf/resolver.go +++ b/protobuf/resolver.go @@ -21,8 +21,8 @@ import ( "strings" "github.com/jhump/protoreflect/desc" - "golib.gaore.com/xuy2/gr_hz/generator/model" - "golib.gaore.com/xuy2/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/generator/model" + "golib.gaore.com/GaoreGo/gr_hz/util" "google.golang.org/protobuf/types/descriptorpb" ) diff --git a/protobuf/tags.go b/protobuf/tags.go index 35efe04..a71b9cf 100644 --- a/protobuf/tags.go +++ b/protobuf/tags.go @@ -22,11 +22,11 @@ import ( "strconv" "strings" - "golib.gaore.com/xuy2/gr_hz/config" - "golib.gaore.com/xuy2/gr_hz/generator" - "golib.gaore.com/xuy2/gr_hz/generator/model" - "golib.gaore.com/xuy2/gr_hz/protobuf/api" - "golib.gaore.com/xuy2/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/config" + "golib.gaore.com/GaoreGo/gr_hz/generator" + "golib.gaore.com/GaoreGo/gr_hz/generator/model" + "golib.gaore.com/GaoreGo/gr_hz/protobuf/api" + "golib.gaore.com/GaoreGo/gr_hz/util" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" "google.golang.org/protobuf/runtime/protoimpl" diff --git a/test_hz_unix.sh b/test_hz_unix.sh index 4babe8c..836a030 100644 --- a/test_hz_unix.sh +++ b/test_hz_unix.sh @@ -1,7 +1,7 @@ #! /usr/bin/env bash # const value define -moduleName="golib.gaore.com/xuy2/gr_hz/test" +moduleName="golib.gaore.com/GaoreGo/gr_hz/test" curDir=`pwd` thriftIDL=$curDir"/testdata/thrift/psm.thrift" protobuf2IDL=$curDir"/testdata/protobuf2/psm/psm.proto" diff --git a/test_hz_windows.sh b/test_hz_windows.sh index 21ef0c3..944f9a6 100644 --- a/test_hz_windows.sh +++ b/test_hz_windows.sh @@ -1,7 +1,7 @@ #! /usr/bin/env bash # const value define -moduleName="golib.gaore.com/xuy2/gr_hz/test" +moduleName="golib.gaore.com/GaoreGo/gr_hz/test" curDir=`pwd` thriftIDL=$curDir"/testdata/thrift/psm.thrift" protobuf2IDL=$curDir"/testdata/protobuf2/psm/psm.proto" diff --git a/testdata/protobuf2/api.proto b/testdata/protobuf2/api.proto index a51db30..6951021 100644 --- a/testdata/protobuf2/api.proto +++ b/testdata/protobuf2/api.proto @@ -4,7 +4,7 @@ package api; import "google/protobuf/descriptor.proto"; -option go_package = "golib.gaore.com/xuy2/gr_hz/test/hertz_model/api"; +option go_package = "golib.gaore.com/GaoreGo/gr_hz/test/hertz_model/api"; extend google.protobuf.FieldOptions { optional string raw_body = 50101; diff --git a/testdata/protobuf2/other/other.proto b/testdata/protobuf2/other/other.proto index 8584ee5..dbfc867 100644 --- a/testdata/protobuf2/other/other.proto +++ b/testdata/protobuf2/other/other.proto @@ -4,7 +4,7 @@ package hertz.other; import "other/other_base.proto"; -option go_package = "golib.gaore.com/xuy2/gr_hz/test/hertz_model/other"; +option go_package = "golib.gaore.com/GaoreGo/gr_hz/test/hertz_model/other"; message OtherType { optional string IsBaseString = 1; diff --git a/testdata/protobuf2/other/other_base.proto b/testdata/protobuf2/other/other_base.proto index 1058c68..fdea1f7 100644 --- a/testdata/protobuf2/other/other_base.proto +++ b/testdata/protobuf2/other/other_base.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package hertz.other; -option go_package = "golib.gaore.com/xuy2/gr_hz/test/hertz_model/other"; +option go_package = "golib.gaore.com/GaoreGo/gr_hz/test/hertz_model/other"; message OtherBaseType { optional string IsOtherBaseTypeString = 1; diff --git a/testdata/protobuf2/psm/base.proto b/testdata/protobuf2/psm/base.proto index 211e7ab..4bafebc 100644 --- a/testdata/protobuf2/psm/base.proto +++ b/testdata/protobuf2/psm/base.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package base; -option go_package = "golib.gaore.com/xuy2/gr_hz/test/hertz_model/psm"; +option go_package = "golib.gaore.com/GaoreGo/gr_hz/test/hertz_model/psm"; message Base { optional string IsBaseString = 1; diff --git a/testdata/protobuf2/psm/psm.proto b/testdata/protobuf2/psm/psm.proto index 313b4ea..f84ef4a 100644 --- a/testdata/protobuf2/psm/psm.proto +++ b/testdata/protobuf2/psm/psm.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package psm; -option go_package = "golib.gaore.com/xuy2/gr_hz/test/hertz_model/psm"; +option go_package = "golib.gaore.com/GaoreGo/gr_hz/test/hertz_model/psm"; import "api.proto"; import "base.proto"; diff --git a/testdata/protobuf3/api.proto b/testdata/protobuf3/api.proto index a51db30..6951021 100644 --- a/testdata/protobuf3/api.proto +++ b/testdata/protobuf3/api.proto @@ -4,7 +4,7 @@ package api; import "google/protobuf/descriptor.proto"; -option go_package = "golib.gaore.com/xuy2/gr_hz/test/hertz_model/api"; +option go_package = "golib.gaore.com/GaoreGo/gr_hz/test/hertz_model/api"; extend google.protobuf.FieldOptions { optional string raw_body = 50101; diff --git a/testdata/protobuf3/other/other.proto b/testdata/protobuf3/other/other.proto index 8584ee5..dbfc867 100644 --- a/testdata/protobuf3/other/other.proto +++ b/testdata/protobuf3/other/other.proto @@ -4,7 +4,7 @@ package hertz.other; import "other/other_base.proto"; -option go_package = "golib.gaore.com/xuy2/gr_hz/test/hertz_model/other"; +option go_package = "golib.gaore.com/GaoreGo/gr_hz/test/hertz_model/other"; message OtherType { optional string IsBaseString = 1; diff --git a/testdata/protobuf3/other/other_base.proto b/testdata/protobuf3/other/other_base.proto index 1058c68..fdea1f7 100644 --- a/testdata/protobuf3/other/other_base.proto +++ b/testdata/protobuf3/other/other_base.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package hertz.other; -option go_package = "golib.gaore.com/xuy2/gr_hz/test/hertz_model/other"; +option go_package = "golib.gaore.com/GaoreGo/gr_hz/test/hertz_model/other"; message OtherBaseType { optional string IsOtherBaseTypeString = 1; diff --git a/testdata/protobuf3/psm/base.proto b/testdata/protobuf3/psm/base.proto index 7029545..9aae046 100644 --- a/testdata/protobuf3/psm/base.proto +++ b/testdata/protobuf3/psm/base.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package base; -option go_package = "golib.gaore.com/xuy2/gr_hz/test/hertz_model/psm"; +option go_package = "golib.gaore.com/GaoreGo/gr_hz/test/hertz_model/psm"; message Base { optional string IsBaseString = 1; diff --git a/testdata/protobuf3/psm/psm.proto b/testdata/protobuf3/psm/psm.proto index f70fd2b..1a8591f 100644 --- a/testdata/protobuf3/psm/psm.proto +++ b/testdata/protobuf3/psm/psm.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package psm; -option go_package = "golib.gaore.com/xuy2/gr_hz/test/hertz_model/psm"; +option go_package = "golib.gaore.com/GaoreGo/gr_hz/test/hertz_model/psm"; import "api.proto"; import "base.proto"; diff --git a/thrift/ast.go b/thrift/ast.go index 88fbeb4..cc77cee 100644 --- a/thrift/ast.go +++ b/thrift/ast.go @@ -25,12 +25,12 @@ import ( "github.com/cloudwego/thriftgo/generator/golang/styles" "github.com/cloudwego/thriftgo/parser" "github.com/cloudwego/thriftgo/semantic" - "golib.gaore.com/xuy2/gr_hz/config" - "golib.gaore.com/xuy2/gr_hz/generator" - "golib.gaore.com/xuy2/gr_hz/generator/model" - "golib.gaore.com/xuy2/gr_hz/meta" - "golib.gaore.com/xuy2/gr_hz/util" - "golib.gaore.com/xuy2/gr_hz/util/logs" + "golib.gaore.com/GaoreGo/gr_hz/config" + "golib.gaore.com/GaoreGo/gr_hz/generator" + "golib.gaore.com/GaoreGo/gr_hz/generator/model" + "golib.gaore.com/GaoreGo/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/util/logs" ) /*---------------------------Import-----------------------------*/ diff --git a/thrift/plugin.go b/thrift/plugin.go index 1946584..2abd4a6 100644 --- a/thrift/plugin.go +++ b/thrift/plugin.go @@ -29,12 +29,12 @@ import ( "github.com/cloudwego/thriftgo/generator/golang/styles" "github.com/cloudwego/thriftgo/parser" thriftgo_plugin "github.com/cloudwego/thriftgo/plugin" - "golib.gaore.com/xuy2/gr_hz/config" - "golib.gaore.com/xuy2/gr_hz/generator" - "golib.gaore.com/xuy2/gr_hz/generator/model" - "golib.gaore.com/xuy2/gr_hz/meta" - "golib.gaore.com/xuy2/gr_hz/util" - "golib.gaore.com/xuy2/gr_hz/util/logs" + "golib.gaore.com/GaoreGo/gr_hz/config" + "golib.gaore.com/GaoreGo/gr_hz/generator" + "golib.gaore.com/GaoreGo/gr_hz/generator/model" + "golib.gaore.com/GaoreGo/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/util/logs" ) type Plugin struct { diff --git a/thrift/plugin_test.go b/thrift/plugin_test.go index 8dc2355..5939575 100644 --- a/thrift/plugin_test.go +++ b/thrift/plugin_test.go @@ -21,8 +21,8 @@ import ( "testing" "github.com/cloudwego/thriftgo/plugin" - "golib.gaore.com/xuy2/gr_hz/generator" - "golib.gaore.com/xuy2/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/generator" + "golib.gaore.com/GaoreGo/gr_hz/meta" ) func TestRun(t *testing.T) { diff --git a/thrift/resolver.go b/thrift/resolver.go index b9cac83..0b3c9b8 100644 --- a/thrift/resolver.go +++ b/thrift/resolver.go @@ -21,8 +21,8 @@ import ( "strings" "github.com/cloudwego/thriftgo/parser" - "golib.gaore.com/xuy2/gr_hz/generator/model" - "golib.gaore.com/xuy2/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/generator/model" + "golib.gaore.com/GaoreGo/gr_hz/util" ) var ( diff --git a/thrift/tag_test.go b/thrift/tag_test.go index 4db19db..a9bfdb4 100644 --- a/thrift/tag_test.go +++ b/thrift/tag_test.go @@ -22,7 +22,7 @@ import ( "testing" "github.com/cloudwego/thriftgo/plugin" - "golib.gaore.com/xuy2/gr_hz/config" + "golib.gaore.com/GaoreGo/gr_hz/config" ) func TestInsertTag(t *testing.T) { diff --git a/thrift/tags.go b/thrift/tags.go index b9927d3..f1d265e 100644 --- a/thrift/tags.go +++ b/thrift/tags.go @@ -23,10 +23,10 @@ import ( "strings" "github.com/cloudwego/thriftgo/parser" - "golib.gaore.com/xuy2/gr_hz/config" - "golib.gaore.com/xuy2/gr_hz/generator" - "golib.gaore.com/xuy2/gr_hz/generator/model" - "golib.gaore.com/xuy2/gr_hz/util" + "golib.gaore.com/GaoreGo/gr_hz/config" + "golib.gaore.com/GaoreGo/gr_hz/generator" + "golib.gaore.com/GaoreGo/gr_hz/generator/model" + "golib.gaore.com/GaoreGo/gr_hz/util" ) const ( diff --git a/util/data.go b/util/data.go index 7c4689f..26dbe6c 100644 --- a/util/data.go +++ b/util/data.go @@ -26,7 +26,7 @@ import ( "strconv" "strings" - "golib.gaore.com/xuy2/gr_hz/util/logs" + "golib.gaore.com/GaoreGo/gr_hz/util/logs" ) func CopyStringSlice(from, to *[]string) { diff --git a/util/env.go b/util/env.go index b625842..6a37e5d 100644 --- a/util/env.go +++ b/util/env.go @@ -27,7 +27,7 @@ import ( "regexp" "strings" - "golib.gaore.com/xuy2/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/meta" ) func GetGOPATH() (gopath string, err error) { diff --git a/util/tool_install.go b/util/tool_install.go index 509f046..531fd28 100644 --- a/util/tool_install.go +++ b/util/tool_install.go @@ -25,8 +25,8 @@ import ( "time" gv "github.com/hashicorp/go-version" - "golib.gaore.com/xuy2/gr_hz/meta" - "golib.gaore.com/xuy2/gr_hz/util/logs" + "golib.gaore.com/GaoreGo/gr_hz/meta" + "golib.gaore.com/GaoreGo/gr_hz/util/logs" ) const ThriftgoMiniVersion = "v0.2.0"