Update Go modules import path

This commit is contained in:
Maddie Zhan 2020-04-03 08:58:34 +08:00
parent 96ea2ede4c
commit e9b33d81b8
10 changed files with 22 additions and 22 deletions

View file

@ -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"

View file

@ -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 (

View file

@ -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"

View file

@ -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"

2
go.mod
View file

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

View file

@ -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"
)

View file

@ -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 {

View file

@ -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"

View file

@ -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"
)

View file

@ -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 (