Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Jan 29, 2020
1 parent 1be8258 commit 49b86c5
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion agent/input/discord/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"

"github.com/bwmarrin/discordgo"
"github.com/micro/go-micro/agent/input"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/agent/input"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion agent/input/slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"errors"
"sync"

"github.com/micro/cli/v2"
"github.com/micro/go-micro/agent/input"
"github.com/nlopes/slack"
"github.com/micro/cli/v2"
)

type slackInput struct {
Expand Down
2 changes: 1 addition & 1 deletion agent/input/telegram/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strings"
"sync"

"github.com/micro/go-micro/agent/input"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/agent/input"
tgbotapi "gopkg.in/telegram-bot-api.v4"
)

Expand Down
2 changes: 1 addition & 1 deletion config/source/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"time"

"github.com/imdario/mergo"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/config/cmd"
"github.com/micro/go-micro/config/source"
"github.com/micro/cli/v2"
)

type cliSource struct {
Expand Down
2 changes: 1 addition & 1 deletion config/source/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os"
"testing"

"github.com/micro/cli/v2"
"github.com/micro/go-micro/config/cmd"
"github.com/micro/go-micro/config/source"
"github.com/micro/cli/v2"
)

func test(t *testing.T, withContext bool) {
Expand Down
4 changes: 2 additions & 2 deletions debug/service/handler/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import (
)

// NewHandler returns an instance of the Debug Handler
func NewHandler(srv server.Server) *Debug {
func NewHandler() *Debug {
return &Debug{
log: log.DefaultLog,
stats: stats.DefaultStats,
trace: srv.Options().Tracer,
trace: trace.DefaultTracer,
}
}

Expand Down
4 changes: 4 additions & 0 deletions defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ package micro

import (
"github.com/micro/go-micro/client"
"github.com/micro/go-micro/debug/trace"
"github.com/micro/go-micro/server"
"github.com/micro/go-micro/store"

// set defaults
gcli "github.com/micro/go-micro/client/grpc"
memTrace "github.com/micro/go-micro/debug/trace/memory"
gsrv "github.com/micro/go-micro/server/grpc"
memStore "github.com/micro/go-micro/store/memory"
)
Expand All @@ -18,4 +20,6 @@ func init() {
server.DefaultServer = gsrv.NewServer()
// default store
store.DefaultStore = memStore.NewStore()
// set default trace
trace.DefaultTracer = memTrace.NewTracer()
}
2 changes: 1 addition & 1 deletion web/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ import (
"syscall"
"time"

"github.com/micro/cli/v2"
"github.com/micro/go-micro"
"github.com/micro/go-micro/registry"
maddr "github.com/micro/go-micro/util/addr"
mhttp "github.com/micro/go-micro/util/http"
"github.com/micro/go-micro/util/log"
mnet "github.com/micro/go-micro/util/net"
mls "github.com/micro/go-micro/util/tls"
"github.com/micro/cli/v2"
)

type service struct {
Expand Down

0 comments on commit 49b86c5

Please sign in to comment.