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
This commit is contained in:
Renan DelValle 2018-01-02 17:12:05 -08:00
parent 1d91d3da09
commit abc542f81f
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
4 changed files with 8 additions and 4 deletions

View file

@ -16,8 +16,9 @@ package realis
import (
"encoding/json"
"github.com/pkg/errors"
"os"
"github.com/pkg/errors"
)
type Cluster struct {

View file

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

View file

@ -18,8 +18,9 @@ import (
"encoding/json"
"flag"
"fmt"
"github.com/paypal/gorealis"
"os"
"github.com/paypal/gorealis"
)
type URIJson struct {

3
job.go
View file

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