Skip to content

Commit

Permalink
Gofmt all source files
Browse files Browse the repository at this point in the history
Signed-off-by: Yun Long <[email protected]>
  • Loading branch information
xxx7xxxx committed Mar 10, 2024
1 parent 29fbde9 commit bb00158
Show file tree
Hide file tree
Showing 24 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion pkg/api/customdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"fmt"
"net/http"

"github.com/go-chi/chi/v5"
"github.com/easegress-io/easegress/v2/pkg/cluster/customdata"
"github.com/easegress-io/easegress/v2/pkg/util/codectool"
"github.com/go-chi/chi/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
"strconv"
"strings"

"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/fsnotify/fsnotify"
"github.com/go-chi/chi/v5"
"github.com/easegress-io/easegress/v2/pkg/logger"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/filters/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"bytes"
"text/template"

sprig "github.com/go-task/slim-sprig"
"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/util/codectool"
sprig "github.com/go-task/slim-sprig"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/filters/builder/requestbuilder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import (
"strings"
"testing"

sprig "github.com/go-task/slim-sprig"
"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/filters"
"github.com/easegress-io/easegress/v2/pkg/protocols/httpprot"
"github.com/easegress-io/easegress/v2/pkg/util/codectool"
sprig "github.com/go-task/slim-sprig"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/filters/connectcontrol/connectcontrol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ package connectcontrol
import (
"testing"

"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/filters"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/easegress-io/easegress/v2/pkg/protocols/mqttprot"
"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/filters/headertojson/headertojson.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"io"
"net/http"

json "github.com/goccy/go-json"
"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/filters"
json "github.com/goccy/go-json"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/filters/headertojson/headertojson_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import (
"strings"
"testing"

json "github.com/goccy/go-json"
"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/filters"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/easegress-io/easegress/v2/pkg/protocols/httpprot"
json "github.com/goccy/go-json"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/filters/mqttclientauth/mqttauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
"crypto/sha256"
"encoding/hex"

"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/filters"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/easegress-io/easegress/v2/pkg/protocols/mqttprot"
"github.com/eclipse/paho.mqtt.golang/packets"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/filters/mqttclientauth/mqttauth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import (
"sync"
"testing"

"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/easegress-io/easegress/v2/pkg/protocols/mqttprot"
"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/filters/proxies/httpproxy/healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
"regexp"
"strings"

"github.com/gorilla/websocket"
"github.com/easegress-io/easegress/v2/pkg/filters/proxies"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/gorilla/websocket"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/filters/proxies/httpproxy/healthcheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"testing"
"time"

"github.com/gorilla/websocket"
"github.com/easegress-io/easegress/v2/pkg/filters/proxies"
"github.com/gorilla/websocket"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/filters/topicmapper/topicmapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ package topicmapper
import (
"testing"

"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/protocols/mqttprot"
"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/object/autocertmanager/autocertmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ import (
"testing"
"time"

"github.com/libdns/libdns"
cluster "github.com/easegress-io/easegress/v2/pkg/cluster"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/easegress-io/easegress/v2/pkg/option"
"github.com/easegress-io/easegress/v2/pkg/supervisor"
"github.com/easegress-io/easegress/v2/pkg/util/codectool"
"github.com/libdns/libdns"
"golang.org/x/crypto/acme"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/object/autocertmanager/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
"sync/atomic"
"time"

"github.com/libdns/libdns"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/libdns/libdns"
"golang.org/x/crypto/acme"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/object/grpcserver/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ import (
"strings"
"sync/atomic"

lru "github.com/hashicorp/golang-lru"
"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/easegress-io/easegress/v2/pkg/object/globalfilter"
"github.com/easegress-io/easegress/v2/pkg/supervisor"
"github.com/easegress-io/easegress/v2/pkg/tracing"
"github.com/easegress-io/easegress/v2/pkg/util/ipfilter"
"github.com/easegress-io/easegress/v2/pkg/util/stringtool"
lru "github.com/hashicorp/golang-lru"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion pkg/object/httpserver/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import (

"github.com/easegress-io/easegress/v2/pkg/object/httpserver/routers"

lru "github.com/hashicorp/golang-lru"
"github.com/easegress-io/easegress/v2/pkg/object/globalfilter"
"github.com/easegress-io/easegress/v2/pkg/protocols/httpprot"
lru "github.com/hashicorp/golang-lru"

"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/logger"
Expand Down
2 changes: 1 addition & 1 deletion pkg/object/meshcontroller/api/api_customresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
"net/http"
"sort"

"github.com/go-chi/chi/v5"
"github.com/easegress-io/easegress/v2/pkg/api"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/easegress-io/easegress/v2/pkg/object/meshcontroller/spec"
"github.com/easegress-io/easegress/v2/pkg/util/codectool"
"github.com/go-chi/chi/v5"
"github.com/megaease/easemesh-api/v2alpha1"
"github.com/xeipuuv/gojsonschema"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/object/mqttproxy/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ import (
"sync/atomic"
"time"

"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/easegress-io/easegress/v2/pkg/api"
"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/easegress-io/easegress/v2/pkg/protocols/mqttprot"
"github.com/easegress-io/easegress/v2/pkg/tracing"
"github.com/easegress-io/easegress/v2/pkg/util/codectool"
"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/openzipkin/zipkin-go/model"
"github.com/openzipkin/zipkin-go/propagation/b3"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/object/mqttproxy/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import (
"sync/atomic"
"time"

"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/easegress-io/easegress/v2/pkg/protocols/mqttprot"
"github.com/eclipse/paho.mqtt.golang/packets"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/object/mqttproxy/mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ import (
"testing"
"time"

"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/easegress-io/easegress/v2/pkg/cluster"
"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/filters"
"github.com/easegress-io/easegress/v2/pkg/protocols/mqttprot"
"github.com/eclipse/paho.mqtt.golang/packets"
"go.etcd.io/etcd/api/v3/mvccpb"
clientv3 "go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/client/v3/concurrency"
Expand Down
4 changes: 2 additions & 2 deletions pkg/object/mqttproxy/mqtt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ import (
"testing"
"time"

paho "github.com/eclipse/paho.mqtt.golang"
"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/easegress-io/easegress/v2/pkg/context"
"github.com/easegress-io/easegress/v2/pkg/filters"
_ "github.com/easegress-io/easegress/v2/pkg/filters/mqttclientauth"
Expand All @@ -43,6 +41,8 @@ import (
"github.com/easegress-io/easegress/v2/pkg/option"
"github.com/easegress-io/easegress/v2/pkg/supervisor"
"github.com/easegress-io/easegress/v2/pkg/util/codectool"
paho "github.com/eclipse/paho.mqtt.golang"
"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/openzipkin/zipkin-go/propagation/b3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion pkg/object/mqttproxy/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"sync/atomic"
"time"

"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/easegress-io/easegress/v2/pkg/util/codectool"
"github.com/eclipse/paho.mqtt.golang/packets"

"github.com/openzipkin/zipkin-go/model"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/object/mqttproxy/session_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ package mqttproxy
import (
"sync"

"github.com/eclipse/paho.mqtt.golang/packets"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/eclipse/paho.mqtt.golang/packets"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion pkg/object/serviceregistry/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ package serviceregistry
import (
"fmt"

"github.com/google/uuid"
"github.com/easegress-io/easegress/v2/pkg/logger"
"github.com/google/uuid"
)

type (
Expand Down

0 comments on commit bb00158

Please sign in to comment.