From 1b4005e9a58838316731b03ae003e267eaeafe78 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Fri, 21 Jun 2019 17:20:41 +0100 Subject: [PATCH] Go fmt everything --- api/handler/api/api.go | 2 +- api/handler/api/util.go | 2 +- api/handler/rpc/rpc.go | 2 +- client/grpc/grpc.go | 2 +- client/grpc/grpc_test.go | 2 +- client/options.go | 2 +- client/rpc_client.go | 2 +- client/rpc_client_test.go | 2 +- client/selector/dns/dns.go | 2 +- client/selector/static/static.go | 2 +- config/cmd/options.go | 2 +- options.go | 2 +- util/http/http.go | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/api/handler/api/api.go b/api/handler/api/api.go index 366a9d87..0798f337 100644 --- a/api/handler/api/api.go +++ b/api/handler/api/api.go @@ -8,8 +8,8 @@ import ( "github.com/micro/go-micro/api/handler" api "github.com/micro/go-micro/api/proto" "github.com/micro/go-micro/client" - "github.com/micro/go-micro/errors" "github.com/micro/go-micro/client/selector" + "github.com/micro/go-micro/errors" "github.com/micro/go-micro/util/ctx" ) diff --git a/api/handler/api/util.go b/api/handler/api/util.go index 2ea1655e..7a4607c7 100644 --- a/api/handler/api/util.go +++ b/api/handler/api/util.go @@ -9,8 +9,8 @@ import ( "strings" api "github.com/micro/go-micro/api/proto" - "github.com/micro/go-micro/registry" "github.com/micro/go-micro/client/selector" + "github.com/micro/go-micro/registry" ) func requestToProto(r *http.Request) (*api.Request, error) { diff --git a/api/handler/rpc/rpc.go b/api/handler/rpc/rpc.go index 6ff79396..4ee2be8e 100644 --- a/api/handler/rpc/rpc.go +++ b/api/handler/rpc/rpc.go @@ -14,12 +14,12 @@ import ( "github.com/micro/go-micro/api/handler" proto "github.com/micro/go-micro/api/internal/proto" "github.com/micro/go-micro/client" + "github.com/micro/go-micro/client/selector" "github.com/micro/go-micro/codec" "github.com/micro/go-micro/codec/jsonrpc" "github.com/micro/go-micro/codec/protorpc" "github.com/micro/go-micro/errors" "github.com/micro/go-micro/registry" - "github.com/micro/go-micro/client/selector" "github.com/micro/go-micro/util/ctx" ) diff --git a/client/grpc/grpc.go b/client/grpc/grpc.go index 5c9ef01e..3430fbfc 100644 --- a/client/grpc/grpc.go +++ b/client/grpc/grpc.go @@ -12,11 +12,11 @@ import ( "github.com/micro/go-micro/broker" "github.com/micro/go-micro/client" + "github.com/micro/go-micro/client/selector" "github.com/micro/go-micro/codec" "github.com/micro/go-micro/errors" "github.com/micro/go-micro/metadata" "github.com/micro/go-micro/registry" - "github.com/micro/go-micro/client/selector" "github.com/micro/go-micro/transport" "google.golang.org/grpc" diff --git a/client/grpc/grpc_test.go b/client/grpc/grpc_test.go index 85ba8ea2..7c58fd4e 100644 --- a/client/grpc/grpc_test.go +++ b/client/grpc/grpc_test.go @@ -8,9 +8,9 @@ import ( "testing" "github.com/micro/go-micro/client" + "github.com/micro/go-micro/client/selector" "github.com/micro/go-micro/registry" "github.com/micro/go-micro/registry/memory" - "github.com/micro/go-micro/client/selector" pgrpc "google.golang.org/grpc" pb "google.golang.org/grpc/examples/helloworld/helloworld" ) diff --git a/client/options.go b/client/options.go index 35cbe704..5a0f4100 100644 --- a/client/options.go +++ b/client/options.go @@ -5,9 +5,9 @@ import ( "time" "github.com/micro/go-micro/broker" + "github.com/micro/go-micro/client/selector" "github.com/micro/go-micro/codec" "github.com/micro/go-micro/registry" - "github.com/micro/go-micro/client/selector" "github.com/micro/go-micro/transport" ) diff --git a/client/rpc_client.go b/client/rpc_client.go index 4f05e1ce..36b3dcf7 100644 --- a/client/rpc_client.go +++ b/client/rpc_client.go @@ -13,11 +13,11 @@ import ( "github.com/google/uuid" "github.com/micro/go-micro/broker" + "github.com/micro/go-micro/client/selector" "github.com/micro/go-micro/codec" "github.com/micro/go-micro/errors" "github.com/micro/go-micro/metadata" "github.com/micro/go-micro/registry" - "github.com/micro/go-micro/client/selector" "github.com/micro/go-micro/transport" ) diff --git a/client/rpc_client_test.go b/client/rpc_client_test.go index 6af32598..2db3ae90 100644 --- a/client/rpc_client_test.go +++ b/client/rpc_client_test.go @@ -5,10 +5,10 @@ import ( "fmt" "testing" + "github.com/micro/go-micro/client/selector" "github.com/micro/go-micro/errors" "github.com/micro/go-micro/registry" "github.com/micro/go-micro/registry/memory" - "github.com/micro/go-micro/client/selector" ) func newTestRegistry() registry.Registry { diff --git a/client/selector/dns/dns.go b/client/selector/dns/dns.go index 1651a9d2..b1d19c95 100644 --- a/client/selector/dns/dns.go +++ b/client/selector/dns/dns.go @@ -5,8 +5,8 @@ import ( "net" "strconv" - "github.com/micro/go-micro/registry" "github.com/micro/go-micro/client/selector" + "github.com/micro/go-micro/registry" ) type dnsSelector struct { diff --git a/client/selector/static/static.go b/client/selector/static/static.go index 3ee79a96..c9b2fd83 100644 --- a/client/selector/static/static.go +++ b/client/selector/static/static.go @@ -5,8 +5,8 @@ import ( "net" "strconv" - "github.com/micro/go-micro/registry" "github.com/micro/go-micro/client/selector" + "github.com/micro/go-micro/registry" ) // staticSelector is a static selector diff --git a/config/cmd/options.go b/config/cmd/options.go index a078375a..1f221f35 100644 --- a/config/cmd/options.go +++ b/config/cmd/options.go @@ -5,8 +5,8 @@ import ( "github.com/micro/go-micro/broker" "github.com/micro/go-micro/client" - "github.com/micro/go-micro/registry" "github.com/micro/go-micro/client/selector" + "github.com/micro/go-micro/registry" "github.com/micro/go-micro/server" "github.com/micro/go-micro/transport" ) diff --git a/options.go b/options.go index 41b782b5..d566a353 100644 --- a/options.go +++ b/options.go @@ -7,9 +7,9 @@ import ( "github.com/micro/cli" "github.com/micro/go-micro/broker" "github.com/micro/go-micro/client" + "github.com/micro/go-micro/client/selector" "github.com/micro/go-micro/config/cmd" "github.com/micro/go-micro/registry" - "github.com/micro/go-micro/client/selector" "github.com/micro/go-micro/server" "github.com/micro/go-micro/transport" ) diff --git a/util/http/http.go b/util/http/http.go index aec84207..47fc33f4 100644 --- a/util/http/http.go +++ b/util/http/http.go @@ -3,8 +3,8 @@ package http import ( "net/http" - "github.com/micro/go-micro/registry" "github.com/micro/go-micro/client/selector" + "github.com/micro/go-micro/registry" ) func NewRoundTripper(opts ...Option) http.RoundTripper {