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" "go.etcd.io/bbolt"
"backend/database/schema" "github.com/librespeed/speedtest/database/schema"
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"

View file

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

View file

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

View file

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

2
go.mod
View file

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

View file

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

View file

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

View file

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

View file

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

View file

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