List vendor includes separately

This commit is contained in:
Adrian Macneil 2017-01-27 23:49:06 -08:00
parent 5b0a2eeedd
commit ef4565c176
11 changed files with 24 additions and 13 deletions

View file

@ -3,7 +3,6 @@ package main
import ( import (
"database/sql" "database/sql"
"fmt" "fmt"
"github.com/urfave/cli"
"io/ioutil" "io/ioutil"
"net/url" "net/url"
"os" "os"
@ -11,6 +10,8 @@ import (
"regexp" "regexp"
"sort" "sort"
"time" "time"
"github.com/urfave/cli"
) )
// UpCommand creates the database (if necessary) and runs migrations // UpCommand creates the database (if necessary) and runs migrations

View file

@ -2,12 +2,13 @@ package main
import ( import (
"flag" "flag"
"github.com/stretchr/testify/require"
"github.com/urfave/cli"
"net/url" "net/url"
"os" "os"
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/stretchr/testify/require"
"github.com/urfave/cli"
) )
var testdataDir string var testdataDir string

View file

@ -1,8 +1,9 @@
package main package main
import ( import (
"github.com/stretchr/testify/require"
"testing" "testing"
"github.com/stretchr/testify/require"
) )
func TestGetDriver_Postgres(t *testing.T) { func TestGetDriver_Postgres(t *testing.T) {

View file

@ -2,10 +2,11 @@ package main
import ( import (
"fmt" "fmt"
"github.com/joho/godotenv"
"github.com/urfave/cli"
"log" "log"
"os" "os"
"github.com/joho/godotenv"
"github.com/urfave/cli"
) )
func main() { func main() {

View file

@ -3,9 +3,10 @@ package main
import ( import (
"database/sql" "database/sql"
"fmt" "fmt"
_ "github.com/go-sql-driver/mysql"
"net/url" "net/url"
"strings" "strings"
_ "github.com/go-sql-driver/mysql"
) )
// MySQLDriver provides top level database functions // MySQLDriver provides top level database functions

View file

@ -2,10 +2,11 @@ package main
import ( import (
"database/sql" "database/sql"
"github.com/stretchr/testify/require"
"net/url" "net/url"
"os" "os"
"testing" "testing"
"github.com/stretchr/testify/require"
) )
func mySQLTestURL(t *testing.T) *url.URL { func mySQLTestURL(t *testing.T) *url.URL {

View file

@ -3,8 +3,9 @@ package main
import ( import (
"database/sql" "database/sql"
"fmt" "fmt"
"github.com/lib/pq"
"net/url" "net/url"
"github.com/lib/pq"
) )
// PostgresDriver provides top level database functions // PostgresDriver provides top level database functions

View file

@ -2,10 +2,11 @@ package main
import ( import (
"database/sql" "database/sql"
"github.com/stretchr/testify/require"
"net/url" "net/url"
"os" "os"
"testing" "testing"
"github.com/stretchr/testify/require"
) )
func postgresTestURL(t *testing.T) *url.URL { func postgresTestURL(t *testing.T) *url.URL {

View file

@ -3,10 +3,11 @@ package main
import ( import (
"database/sql" "database/sql"
"fmt" "fmt"
_ "github.com/mattn/go-sqlite3"
"net/url" "net/url"
"os" "os"
"regexp" "regexp"
_ "github.com/mattn/go-sqlite3"
) )
// SQLiteDriver provides top level database functions // SQLiteDriver provides top level database functions

View file

@ -2,10 +2,11 @@ package main
import ( import (
"database/sql" "database/sql"
"github.com/stretchr/testify/require"
"net/url" "net/url"
"os" "os"
"testing" "testing"
"github.com/stretchr/testify/require"
) )
func sqliteTestURL(t *testing.T) *url.URL { func sqliteTestURL(t *testing.T) *url.URL {

View file

@ -1,9 +1,10 @@
package main package main
import ( import (
"github.com/stretchr/testify/require"
"net/url" "net/url"
"testing" "testing"
"github.com/stretchr/testify/require"
) )
func TestDatabaseName(t *testing.T) { func TestDatabaseName(t *testing.T) {