浏览代码

Update Go modules import path

Maddie Zhan 5 年之前
父节点
当前提交
e9b33d81b8
共有 10 个文件被更改,包括 22 次插入22 次删除
  1. 1 1
      database/bolt/bolt.go
  2. 5 5
      database/database.go
  3. 1 1
      database/mysql/mysql.go
  4. 1 1
      database/postgresql/postgresql.go
  5. 1 1
      go.mod
  6. 3 3
      main.go
  7. 3 3
      results/stats.go
  8. 3 3
      results/telemetry.go
  9. 2 2
      web/helpers.go
  10. 2 2
      web/web.go

+ 1 - 1
database/bolt/bolt.go

@@ -7,7 +7,7 @@ import (
 
 	"go.etcd.io/bbolt"
 
-	"backend/database/schema"
+	"github.com/librespeed/speedtest/database/schema"
 
 	_ "github.com/go-sql-driver/mysql"
 	log "github.com/sirupsen/logrus"

+ 5 - 5
database/database.go

@@ -1,11 +1,11 @@
 package database
 
 import (
-	"backend/config"
-	"backend/database/bolt"
-	"backend/database/mysql"
-	"backend/database/postgresql"
-	"backend/database/schema"
+	"github.com/librespeed/speedtest/config"
+	"github.com/librespeed/speedtest/database/bolt"
+	"github.com/librespeed/speedtest/database/mysql"
+	"github.com/librespeed/speedtest/database/postgresql"
+	"github.com/librespeed/speedtest/database/schema"
 )
 
 var (

+ 1 - 1
database/mysql/mysql.go

@@ -4,7 +4,7 @@ import (
 	"database/sql"
 	"fmt"
 
-	"backend/database/schema"
+	"github.com/librespeed/speedtest/database/schema"
 
 	_ "github.com/go-sql-driver/mysql"
 	log "github.com/sirupsen/logrus"

+ 1 - 1
database/postgresql/postgresql.go

@@ -4,7 +4,7 @@ import (
 	"database/sql"
 	"fmt"
 
-	"backend/database/schema"
+	"github.com/librespeed/speedtest/database/schema"
 
 	_ "github.com/lib/pq"
 	log "github.com/sirupsen/logrus"

+ 1 - 1
go.mod

@@ -1,4 +1,4 @@
-module backend
+module github.com/librespeed/speedtest
 
 go 1.13
 

+ 3 - 3
main.go

@@ -1,9 +1,9 @@
 package main
 
 import (
-	"backend/config"
-	"backend/database"
-	"backend/web"
+	"github.com/librespeed/speedtest/config"
+	"github.com/librespeed/speedtest/database"
+	"github.com/librespeed/speedtest/web"
 
 	log "github.com/sirupsen/logrus"
 )

+ 3 - 3
results/stats.go

@@ -6,9 +6,9 @@ import (
 
 	log "github.com/sirupsen/logrus"
 
-	"backend/config"
-	"backend/database"
-	"backend/database/schema"
+	"github.com/librespeed/speedtest/config"
+	"github.com/librespeed/speedtest/database"
+	"github.com/librespeed/speedtest/database/schema"
 )
 
 type StatsData struct {

+ 3 - 3
results/telemetry.go

@@ -14,9 +14,9 @@ import (
 	"strings"
 	"time"
 
-	"backend/config"
-	"backend/database"
-	"backend/database/schema"
+	"github.com/librespeed/speedtest/config"
+	"github.com/librespeed/speedtest/database"
+	"github.com/librespeed/speedtest/database/schema"
 
 	"github.com/golang/freetype"
 	"github.com/golang/freetype/truetype"

+ 2 - 2
web/helpers.go

@@ -10,8 +10,8 @@ import (
 	"strconv"
 	"strings"
 
-	"backend/config"
-	"backend/results"
+	"github.com/librespeed/speedtest/config"
+	"github.com/librespeed/speedtest/results"
 
 	log "github.com/sirupsen/logrus"
 )

+ 2 - 2
web/web.go

@@ -16,8 +16,8 @@ import (
 	"github.com/go-chi/render"
 	log "github.com/sirupsen/logrus"
 
-	"backend/config"
-	"backend/results"
+	"github.com/librespeed/speedtest/config"
+	"github.com/librespeed/speedtest/results"
 )
 
 const (