From 141dcdd17f0302bb1a64f1f79475304b2fddd43a Mon Sep 17 00:00:00 2001 From: Sina Siadat Date: Fri, 19 Aug 2016 21:03:27 +0430 Subject: [PATCH] format using goimports instead of gofmt --- attr.go | 9 +++++---- commands.go | 3 ++- main.go | 5 +++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/attr.go b/attr.go index 943ee34..732ae5a 100644 --- a/attr.go +++ b/attr.go @@ -3,10 +3,6 @@ package main import ( "database/sql" "fmt" - "github.com/andrew-d/go-termutil" - "github.com/mattn/go-colorable" - "github.com/mgutz/ansi" - "gopkg.in/fsnotify.v1" "io/ioutil" "log" "os" @@ -16,6 +12,11 @@ import ( "strings" "text/tabwriter" "time" + + "github.com/andrew-d/go-termutil" + "github.com/mattn/go-colorable" + "github.com/mgutz/ansi" + "gopkg.in/fsnotify.v1" ) var out = colorable.NewColorableStdout() diff --git a/commands.go b/commands.go index c4f6f41..0dd13a4 100644 --- a/commands.go +++ b/commands.go @@ -4,7 +4,6 @@ import ( "bufio" "database/sql" "fmt" - _ "github.com/mattn/go-sqlite3" "io" "io/ioutil" "log" @@ -14,6 +13,8 @@ import ( "path/filepath" "strings" "text/tabwriter" + + _ "github.com/mattn/go-sqlite3" ) // var globalDB *sql.DB diff --git a/main.go b/main.go index 6ff9248..a7eb40d 100644 --- a/main.go +++ b/main.go @@ -4,14 +4,15 @@ import ( "bufio" "database/sql" "fmt" - "github.com/docopt/docopt-go" - _ "github.com/mattn/go-sqlite3" "log" "math/rand" "os" "path/filepath" "strconv" "text/tabwriter" + + "github.com/docopt/docopt-go" + _ "github.com/mattn/go-sqlite3" ) var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")