瀏覽代碼

Rename to godash

Florian Hoss 2 年之前
父節點
當前提交
55dce3186a
共有 10 個文件被更改,包括 15 次插入16 次删除
  1. 1 1
      bookmark/bookmark.go
  2. 1 1
      config/config.go
  3. 1 2
      config/server.json
  4. 1 1
      go.mod
  5. 1 1
      logging/logging.go
  6. 3 3
      main.go
  7. 1 1
      package-lock.json
  8. 3 3
      server/routes.go
  9. 2 2
      server/server.go
  10. 1 1
      weather/weather.go

+ 1 - 1
bookmark/bookmark.go

@@ -5,8 +5,8 @@ import (
 	"github.com/fsnotify/fsnotify"
 	"github.com/fsnotify/fsnotify"
 	"github.com/sirupsen/logrus"
 	"github.com/sirupsen/logrus"
 	folderCreate "github.com/unjx-de/go-folder"
 	folderCreate "github.com/unjx-de/go-folder"
+	"godash/message"
 	"io"
 	"io"
-	"launchpad/message"
 	"os"
 	"os"
 	"strings"
 	"strings"
 )
 )

+ 1 - 1
config/config.go

@@ -4,7 +4,7 @@ import (
 	"github.com/mitchellh/mapstructure"
 	"github.com/mitchellh/mapstructure"
 	"github.com/sirupsen/logrus"
 	"github.com/sirupsen/logrus"
 	"github.com/spf13/viper"
 	"github.com/spf13/viper"
-	"launchpad/message"
+	"godash/message"
 	"strings"
 	"strings"
 )
 )
 
 

+ 1 - 2
config/server.json

@@ -1,5 +1,4 @@
 {
 {
   "port": 4000,
   "port": 4000,
-  "allowed_hosts": "http://localhost:4000",
-  "swagger": false
+  "allowed_hosts": "http://localhost:4000"
 }
 }

+ 1 - 1
go.mod

@@ -1,4 +1,4 @@
-module launchpad
+module godash
 
 
 go 1.19
 go 1.19
 
 

+ 1 - 1
logging/logging.go

@@ -2,7 +2,7 @@ package logging
 
 
 import (
 import (
 	"github.com/sirupsen/logrus"
 	"github.com/sirupsen/logrus"
-	"launchpad/config"
+	"godash/config"
 )
 )
 
 
 func NewGlobalLogger() {
 func NewGlobalLogger() {

+ 3 - 3
main.go

@@ -1,9 +1,9 @@
 package main
 package main
 
 
 import (
 import (
-	"launchpad/logging"
-	"launchpad/server"
-	"launchpad/weather"
+	"godash/logging"
+	"godash/server"
+	"godash/weather"
 )
 )
 
 
 func main() {
 func main() {

+ 1 - 1
package-lock.json

@@ -1,5 +1,5 @@
 {
 {
-  "name": "launchpad",
+  "name": "godash",
   "lockfileVersion": 2,
   "lockfileVersion": 2,
   "requires": true,
   "requires": true,
   "packages": {
   "packages": {

+ 3 - 3
server/routes.go

@@ -1,9 +1,9 @@
 package server
 package server
 
 
 import (
 import (
-	"launchpad/bookmark"
-	"launchpad/files"
-	"launchpad/weather"
+	"godash/bookmark"
+	"godash/files"
+	"godash/weather"
 	"net/http"
 	"net/http"
 )
 )
 
 

+ 2 - 2
server/server.go

@@ -4,8 +4,8 @@ import (
 	"fmt"
 	"fmt"
 	"github.com/go-chi/chi/v5"
 	"github.com/go-chi/chi/v5"
 	"github.com/sirupsen/logrus"
 	"github.com/sirupsen/logrus"
-	"launchpad/config"
-	"launchpad/message"
+	"godash/config"
+	"godash/message"
 	"net/http"
 	"net/http"
 )
 )
 
 

+ 1 - 1
weather/weather.go

@@ -4,8 +4,8 @@ import (
 	"encoding/json"
 	"encoding/json"
 	"fmt"
 	"fmt"
 	"github.com/sirupsen/logrus"
 	"github.com/sirupsen/logrus"
+	"godash/config"
 	"io"
 	"io"
-	"launchpad/config"
 	"net/http"
 	"net/http"
 	"time"
 	"time"
 )
 )