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:
parent
1d91d3da09
commit
abc542f81f
4 changed files with 8 additions and 4 deletions
|
@ -16,8 +16,9 @@ package realis
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"github.com/pkg/errors"
|
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Cluster struct {
|
type Cluster struct {
|
||||||
|
|
|
@ -24,10 +24,11 @@ import (
|
||||||
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"log"
|
||||||
|
|
||||||
"github.com/paypal/gorealis"
|
"github.com/paypal/gorealis"
|
||||||
"github.com/paypal/gorealis/gen-go/apache/aurora"
|
"github.com/paypal/gorealis/gen-go/apache/aurora"
|
||||||
"github.com/paypal/gorealis/response"
|
"github.com/paypal/gorealis/response"
|
||||||
"log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var cmd, executor, url, clustersConfig, clusterName, updateId, username, password, zkUrl, hostList string
|
var cmd, executor, url, clustersConfig, clusterName, updateId, username, password, zkUrl, hostList string
|
||||||
|
|
|
@ -18,8 +18,9 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/paypal/gorealis"
|
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/paypal/gorealis"
|
||||||
)
|
)
|
||||||
|
|
||||||
type URIJson struct {
|
type URIJson struct {
|
||||||
|
|
3
job.go
3
job.go
|
@ -15,8 +15,9 @@
|
||||||
package realis
|
package realis
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/paypal/gorealis/gen-go/apache/aurora"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/paypal/gorealis/gen-go/apache/aurora"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Job interface {
|
type Job interface {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue