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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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