format using goimports instead of gofmt

This commit is contained in:
Sina Siadat 2016-08-19 21:03:27 +04:30
parent d24721db6b
commit 141dcdd17f
3 changed files with 10 additions and 7 deletions

View File

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

View File

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

View File

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