From abc542f81f2c9da1d0111baa80845fcab1d3eb6d Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Tue, 2 Jan 2018 17:12:05 -0800 Subject: [PATCH] goimports run on whole project using ` goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./gen-go/*")` source of command: https://gist.github.com/bgentry/fd1ffef7dbde01857f66 --- clusters.go | 3 ++- examples/client.go | 3 ++- examples/jsonClient.go | 3 ++- job.go | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/clusters.go b/clusters.go index 66d719b..0d20db5 100644 --- a/clusters.go +++ b/clusters.go @@ -16,8 +16,9 @@ package realis import ( "encoding/json" - "github.com/pkg/errors" "os" + + "github.com/pkg/errors" ) type Cluster struct { diff --git a/examples/client.go b/examples/client.go index 38e329e..9c2e1b8 100644 --- a/examples/client.go +++ b/examples/client.go @@ -24,10 +24,11 @@ import ( "strings" + "log" + "github.com/paypal/gorealis" "github.com/paypal/gorealis/gen-go/apache/aurora" "github.com/paypal/gorealis/response" - "log" ) var cmd, executor, url, clustersConfig, clusterName, updateId, username, password, zkUrl, hostList string diff --git a/examples/jsonClient.go b/examples/jsonClient.go index b9b7f5a..434370d 100644 --- a/examples/jsonClient.go +++ b/examples/jsonClient.go @@ -18,8 +18,9 @@ import ( "encoding/json" "flag" "fmt" - "github.com/paypal/gorealis" "os" + + "github.com/paypal/gorealis" ) type URIJson struct { diff --git a/job.go b/job.go index bc699c2..0fc7040 100644 --- a/job.go +++ b/job.go @@ -15,8 +15,9 @@ package realis import ( - "github.com/paypal/gorealis/gen-go/apache/aurora" "strconv" + + "github.com/paypal/gorealis/gen-go/apache/aurora" ) type Job interface {