From 3d6e71e805631ebd90370cf4dfdb2bbc236fddc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=81=E9=A3=9E=E7=85=8C?= <2633218009@qq.com> Date: Wed, 13 Jul 2022 23:53:45 +0800 Subject: [PATCH] feat(mod): update mod path --- command_filter.go | 2 +- default_transfer.go | 4 ++-- matcher/http.go | 2 +- matcher/json.go | 2 +- matcher/number.go | 2 +- matcher/path.go | 2 +- matcher/string.go | 2 +- pool.go | 2 +- result.go | 2 +- sync_engine.go | 6 +++--- transfer.go | 2 +- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/command_filter.go b/command_filter.go index 86f96ad..fa34574 100644 --- a/command_filter.go +++ b/command_filter.go @@ -1,8 +1,8 @@ package common_engine import ( - "common_engine/common/status" "context" + "gitee.com/coder_vector/common_engine/common/status" "strings" ) diff --git a/default_transfer.go b/default_transfer.go index ced98c6..51f3363 100644 --- a/default_transfer.go +++ b/default_transfer.go @@ -1,9 +1,9 @@ package common_engine import ( - "common_engine/common/status" - "common_engine/matcher" "context" + "gitee.com/coder_vector/common_engine/common/status" + "gitee.com/coder_vector/common_engine/matcher" "math" "regexp" "sort" diff --git a/matcher/http.go b/matcher/http.go index 77ded0f..7e85b84 100644 --- a/matcher/http.go +++ b/matcher/http.go @@ -1,8 +1,8 @@ package matcher import ( - "common_engine/common/status" "fmt" + "gitee.com/coder_vector/common_engine/common/status" "net/url" "strings" ) diff --git a/matcher/json.go b/matcher/json.go index 5ecf5c4..b7ac2ee 100644 --- a/matcher/json.go +++ b/matcher/json.go @@ -1,9 +1,9 @@ package matcher import ( - "common_engine/common/status" "encoding/json" "fmt" + "gitee.com/coder_vector/common_engine/common/status" ) func init() { diff --git a/matcher/number.go b/matcher/number.go index d6596c6..7b471a9 100644 --- a/matcher/number.go +++ b/matcher/number.go @@ -1,8 +1,8 @@ package matcher import ( - "common_engine/common/status" "fmt" + "gitee.com/coder_vector/common_engine/common/status" "strconv" "strings" ) diff --git a/matcher/path.go b/matcher/path.go index 2c6cc40..681e64d 100644 --- a/matcher/path.go +++ b/matcher/path.go @@ -1,8 +1,8 @@ package matcher import ( - "common_engine/common/status" "fmt" + "gitee.com/coder_vector/common_engine/common/status" "io/fs" "os" ) diff --git a/matcher/string.go b/matcher/string.go index 3fa3806..2b9aa38 100644 --- a/matcher/string.go +++ b/matcher/string.go @@ -1,8 +1,8 @@ package matcher import ( - "common_engine/common/status" "encoding/json" + "gitee.com/coder_vector/common_engine/common/status" ) func init() { diff --git a/pool.go b/pool.go index 583c2fe..18bb6b4 100644 --- a/pool.go +++ b/pool.go @@ -1,7 +1,7 @@ package common_engine import ( - "common_engine/common/constant" + "gitee.com/coder_vector/common_engine/common/constant" "github.com/panjf2000/ants" ) diff --git a/result.go b/result.go index b8f75a1..ad508c7 100644 --- a/result.go +++ b/result.go @@ -1,8 +1,8 @@ package common_engine import ( - "common_engine/common/status" "errors" + "gitee.com/coder_vector/common_engine/common/status" ) type Response interface { diff --git a/sync_engine.go b/sync_engine.go index 84502d3..70df455 100644 --- a/sync_engine.go +++ b/sync_engine.go @@ -1,8 +1,8 @@ package common_engine import ( - "common_engine/common/status" "context" + "gitee.com/coder_vector/common_engine/common/status" "strings" "sync" ) @@ -106,13 +106,13 @@ func (e *syncEngine) Running() error { // parse task commands var taskPart []*TaskPart if taskPart, err = e.transfer.DoParse(e.ctx, innerTa); err != nil { - return nil,err + return nil, err } //do match var taskCommand []*TaskCommand if taskCommand, err = e.transfer.DoMatch(e.ctx, e.commandHandlers, taskPart); err != nil { - return nil,err + return nil, err } innerTa.commands = taskCommand diff --git a/transfer.go b/transfer.go index a727958..ce1e2b9 100644 --- a/transfer.go +++ b/transfer.go @@ -1,8 +1,8 @@ package common_engine import ( - "common_engine/matcher" "context" + "gitee.com/coder_vector/common_engine/matcher" ) type Transfer interface { -- Gitee