import cycle not allowed

This commit is contained in:
2023-01-18 17:46:25 +08:00
parent 8d3a64b26e
commit 26f46f1eb6
35 changed files with 355 additions and 341 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ package util
import (
"bytes"
"cutego/pkg/common"
"cutego/pkg/logging"
"encoding/gob"
)
@@ -21,7 +21,7 @@ func DeepCopy(src, dst interface{}) interface{} {
}
err := gob.NewDecoder(bytes.NewBuffer(buf.Bytes())).Decode(dst)
if err != nil {
common.ErrorLogf("src(%v)---> dst(%v), error", src, dst)
logging.ErrorLogf("src(%v)---> dst(%v), error", src, dst)
}
return dst
}