Skip to content

Commit

Permalink
style: changed the format of import
Browse files Browse the repository at this point in the history
  • Loading branch information
mutezebra committed Jan 12, 2025
1 parent 9431d50 commit 53a60d5
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 4 deletions.
4 changes: 3 additions & 1 deletion configcenter/configclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

package configcenter

import "github.com/apache/dubbo-go-pixiu/pkg/model"
import (
"github.com/apache/dubbo-go-pixiu/pkg/model"
)

type (
ConfigClient interface {
Expand Down
4 changes: 4 additions & 0 deletions configcenter/nacos_load.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ package configcenter

import (
"sync"
)

import (
"github.com/nacos-group/nacos-sdk-go/clients"
"github.com/nacos-group/nacos-sdk-go/clients/config_client"
"github.com/nacos-group/nacos-sdk-go/common/constant"
"github.com/nacos-group/nacos-sdk-go/vo"
"github.com/pkg/errors"
)

import (
"github.com/apache/dubbo-go-pixiu/pkg/logger"
"github.com/apache/dubbo-go-pixiu/pkg/model"
)
Expand Down
7 changes: 6 additions & 1 deletion configcenter/nacos_load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,16 @@ import (
"path"
"strings"
"testing"
)

"github.com/apache/dubbo-go-pixiu/pkg/logger"
import (
. "github.com/smartystreets/goconvey/convey"

Check failure on line 30 in configcenter/nacos_load_test.go

View workflow job for this annotation

GitHub Actions / review

[golangci] reported by reviewdog 🐶 "github.com/smartystreets/goconvey/convey" imported but not used (typecheck) Raw Output: configcenter/nacos_load_test.go:30:2: "github.com/smartystreets/goconvey/convey" imported but not used (typecheck) . "github.com/smartystreets/goconvey/convey" ^
)

import (
"github.com/apache/dubbo-go-pixiu/pkg/logger"
)

// isNacosRunning checks whether the Nacos server is running.
// It returns true if Nacos is running, otherwise false.
func isNacosRunning(t *testing.T) bool {
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package cmd

import (
"fmt"
"github.com/apache/dubbo-go-pixiu/pkg/hotreload"
"os"
"runtime"
"strconv"
Expand All @@ -33,6 +32,7 @@ import (
"github.com/apache/dubbo-go-pixiu/pkg/common/constant"
pxruntime "github.com/apache/dubbo-go-pixiu/pkg/common/runtime"
"github.com/apache/dubbo-go-pixiu/pkg/config"
"github.com/apache/dubbo-go-pixiu/pkg/hotreload"
"github.com/apache/dubbo-go-pixiu/pkg/logger"
"github.com/apache/dubbo-go-pixiu/pkg/model"
"github.com/apache/dubbo-go-pixiu/pkg/server"
Expand Down
2 changes: 2 additions & 0 deletions pkg/hotreload/hotreload.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ package hotreload
import (
"sync"
"time"
)

import (
"github.com/apache/dubbo-go-pixiu/pkg/common/constant"
"github.com/apache/dubbo-go-pixiu/pkg/config"
"github.com/apache/dubbo-go-pixiu/pkg/logger"
Expand Down
2 changes: 2 additions & 0 deletions pkg/logger/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ package logger
import (
"strings"
"sync"
)

import (
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
Expand Down
5 changes: 4 additions & 1 deletion pkg/model/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@
package model

import (
"github.com/apache/dubbo-go-pixiu/pkg/logger"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)

import (
"github.com/apache/dubbo-go-pixiu/pkg/logger"
)

type Log struct {
Level string `json:"level" yaml:"level"`
Development bool `json:"development" yaml:"development"`
Expand Down

0 comments on commit 53a60d5

Please sign in to comment.