diff --git a/go.mod b/go.mod index 0c93d2d2e639e334db97cef715a844bd3a369680..0ddd5628cd493ba1d1989f5ae2a872efb8bad3a2 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,6 @@ require ( github.com/natefinch/lumberjack v2.0.0+incompatible github.com/satori/go.uuid v1.2.0 go.uber.org/zap v1.16.0 - golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect + golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect ) diff --git a/src/utils/network.go b/src/utils/network.go index f0160cd49b2aea2791826d6c0c3116e16d3ab941..a0d887b020b7317ec3372fafde69a2da7298927e 100644 --- a/src/utils/network.go +++ b/src/utils/network.go @@ -4,8 +4,6 @@ import ( "fmt" uuid "github.com/satori/go.uuid" "net" - "os" - "path/filepath" ) // 获取本机网卡IP diff --git a/src/utils/path.go b/src/utils/path.go index b8b8013a5dbdf865056ddc316c3eb1afd8f40c59..cf79f1edd40edc6c3dd553798ad1af12ee17e353 100644 --- a/src/utils/path.go +++ b/src/utils/path.go @@ -4,6 +4,7 @@ import ( "os" "path/filepath" ) + //运行的程序所在目录 func BasePath() string { executer, err := os.Executable()