From ee64cfa66f2ab084b3e1fdac39f9398908206fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=B0=91=E5=A5=87?= Date: Wed, 11 Aug 2021 15:30:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 2 +- src/utils/network.go | 2 -- src/utils/path.go | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 0c93d2d..0ddd562 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 f0160cd..a0d887b 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 b8b8013..cf79f1e 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() -- Gitee