Go fmt everything

This commit is contained in:
Asim Aslam 2019-06-21 17:20:41 +01:00
parent 3f97743e34
commit 1b4005e9a5
13 changed files with 13 additions and 13 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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