From 9b412047ea0ba542b704ba5e6f8dd7ac61d48579 Mon Sep 17 00:00:00 2001 From: zggsong Date: Fri, 21 Oct 2022 11:43:16 +0800 Subject: [PATCH] perf: update project name --- .gitignore | 2 +- Dockerfile | 4 ++-- global/global.go | 2 +- go.mod | 2 +- main.go | 11 ++++++----- serve/core/core.go | 2 +- serve/serve.go | 9 +++++---- util/util.go | 9 +++++---- 8 files changed, 22 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 79cbf3d..3349bc6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -ksat-mrsb +luxshare-mrsb .idea diff --git a/Dockerfile b/Dockerfile index 423d97b..a17ff9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,8 @@ RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN echo "Asia/Shanghai" > /etc/timezone -COPY ksat-mrsb "/app/ksat-mrsb" +COPY luxshare-mrsb "/app/luxshare-mrsb" EXPOSE 7201 -ENTRYPOINT ["./ksat-mrsb"] \ No newline at end of file +ENTRYPOINT ["./luxshare-mrsb"] \ No newline at end of file diff --git a/global/global.go b/global/global.go index f11c563..66bf5a2 100644 --- a/global/global.go +++ b/global/global.go @@ -1,6 +1,6 @@ package global -import "ksat-mrsb/config" +import "luxshare-mrsb/config" var ( GLO_CONFIG config.Config diff --git a/go.mod b/go.mod index 2a2dd25..e732a76 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module ksat-mrsb +module luxshare-mrsb go 1.18 diff --git a/main.go b/main.go index 540ae7a..0d2ad4f 100644 --- a/main.go +++ b/main.go @@ -1,13 +1,14 @@ package main import ( - log "github.com/sirupsen/logrus" - "gopkg.in/natefinch/lumberjack.v2" - "ksat-mrsb/config" - "ksat-mrsb/global" - "ksat-mrsb/serve" + "luxshare-mrsb/config" + "luxshare-mrsb/global" + "luxshare-mrsb/serve" "net/http" "os" + + log "github.com/sirupsen/logrus" + "gopkg.in/natefinch/lumberjack.v2" ) func init() { diff --git a/serve/core/core.go b/serve/core/core.go index 56bf96b..894336b 100644 --- a/serve/core/core.go +++ b/serve/core/core.go @@ -6,7 +6,7 @@ import ( "errors" "fmt" "io/ioutil" - "ksat-mrsb/model" + "luxshare-mrsb/model" "net/http" "net/url" "strings" diff --git a/serve/serve.go b/serve/serve.go index 6217652..8b1c9ca 100644 --- a/serve/serve.go +++ b/serve/serve.go @@ -4,7 +4,6 @@ import ( "bytes" "encoding/base64" "fmt" - log "github.com/sirupsen/logrus" "image" _ "image/gif" "image/jpeg" @@ -12,13 +11,15 @@ import ( _ "image/png" "io" "io/ioutil" - "ksat-mrsb/global" - "ksat-mrsb/serve/core" - "ksat-mrsb/util" + "luxshare-mrsb/global" + "luxshare-mrsb/serve/core" + "luxshare-mrsb/util" "net/http" "os" "strconv" "time" + + log "github.com/sirupsen/logrus" ) // diff --git a/util/util.go b/util/util.go index 5f683e4..4ea423b 100644 --- a/util/util.go +++ b/util/util.go @@ -3,12 +3,13 @@ package util import ( "encoding/json" "fmt" - "github.com/fsnotify/fsnotify" - log "github.com/sirupsen/logrus" "io/ioutil" - "ksat-mrsb/global" - "ksat-mrsb/model" + "luxshare-mrsb/global" + "luxshare-mrsb/model" "net/http" + + "github.com/fsnotify/fsnotify" + log "github.com/sirupsen/logrus" ) //