format using goimports instead of gofmt

master
Sina Siadat 8 years ago
parent d24721db6b
commit 141dcdd17f

@ -3,10 +3,6 @@ package main
import ( import (
"database/sql" "database/sql"
"fmt" "fmt"
"github.com/andrew-d/go-termutil"
"github.com/mattn/go-colorable"
"github.com/mgutz/ansi"
"gopkg.in/fsnotify.v1"
"io/ioutil" "io/ioutil"
"log" "log"
"os" "os"
@ -16,6 +12,11 @@ import (
"strings" "strings"
"text/tabwriter" "text/tabwriter"
"time" "time"
"github.com/andrew-d/go-termutil"
"github.com/mattn/go-colorable"
"github.com/mgutz/ansi"
"gopkg.in/fsnotify.v1"
) )
var out = colorable.NewColorableStdout() var out = colorable.NewColorableStdout()

@ -4,7 +4,6 @@ import (
"bufio" "bufio"
"database/sql" "database/sql"
"fmt" "fmt"
_ "github.com/mattn/go-sqlite3"
"io" "io"
"io/ioutil" "io/ioutil"
"log" "log"
@ -14,6 +13,8 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"text/tabwriter" "text/tabwriter"
_ "github.com/mattn/go-sqlite3"
) )
// var globalDB *sql.DB // var globalDB *sql.DB

@ -4,14 +4,15 @@ import (
"bufio" "bufio"
"database/sql" "database/sql"
"fmt" "fmt"
"github.com/docopt/docopt-go"
_ "github.com/mattn/go-sqlite3"
"log" "log"
"math/rand" "math/rand"
"os" "os"
"path/filepath" "path/filepath"
"strconv" "strconv"
"text/tabwriter" "text/tabwriter"
"github.com/docopt/docopt-go"
_ "github.com/mattn/go-sqlite3"
) )
var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")

Loading…
Cancel
Save