Skip to content

Commit

Permalink
add go imports shell
Browse files Browse the repository at this point in the history
  • Loading branch information
luky116 committed Jun 16, 2022
1 parent 9f4d8cc commit a8612de
Show file tree
Hide file tree
Showing 53 changed files with 58 additions and 125 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ require (
github.com/stretchr/testify v1.7.0
go.uber.org/atomic v1.9.0
go.uber.org/zap v1.19.1
golang.org/x/tools v0.1.11 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
vimagination.zapto.org/byteio v0.0.0-20200222190125-d27cba0f0b10
Expand Down
13 changes: 13 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ=
Expand Down Expand Up @@ -460,6 +461,7 @@ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
Expand All @@ -485,6 +487,8 @@ golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzB
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
Expand All @@ -510,7 +514,9 @@ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81R
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
Expand Down Expand Up @@ -560,15 +566,20 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201223074533-0d417f636930/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20211117180635-dee7805ff2e1 h1:kwrAHlwJ0DUBZwQ238v+Uod/3eZ8B2K5rYsUHBQvzmI=
golang.org/x/sys v0.0.0-20211117180635-dee7805ff2e1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
Expand Down Expand Up @@ -605,6 +616,8 @@ golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roY
golang.org/x/tools v0.0.0-20201014170642-d1624618ad65/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.11 h1:loJ25fNOEhSXfHrpoGj91eCUThwdNX6u24rO1xnNteY=
golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down
2 changes: 2 additions & 0 deletions goimports.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
go get -v golang.org/x/tools/cmd/goimports
goimports -w .
3 changes: 0 additions & 3 deletions pkg/common/log/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ import (
"bytes"
"errors"
"fmt"
)

import (
"github.com/natefinch/lumberjack"

"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
Expand Down
2 changes: 0 additions & 2 deletions pkg/protocol/codec/branch_register_req_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ package codec

import (
"github.com/fagongzi/goetty"
)

import (
model2 "github.com/seata/seata-go/pkg/protocol/branch"
"github.com/seata/seata-go/pkg/protocol/message"
)
Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/branch_register_req_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/branch"
"github.com/seata/seata-go/pkg/protocol/message"
"github.com/stretchr/testify/assert"
"testing"
)

func TestBranchRegisterRequestCodec(t *testing.T) {
Expand Down
3 changes: 0 additions & 3 deletions pkg/protocol/codec/branch_register_response_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ package codec

import (
"github.com/fagongzi/goetty"
)

import (
"github.com/seata/seata-go/pkg/protocol/message"
"github.com/seata/seata-go/pkg/protocol/transaction"
)
Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/branch_register_response_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/seata/seata-go/pkg/protocol/transaction"
"github.com/stretchr/testify/assert"
"testing"
)

func TestBranchRegisterResponseCodec(t *testing.T) {
Expand Down
7 changes: 1 addition & 6 deletions pkg/protocol/codec/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ package codec
import (
"bytes"
"sync"
)

import (
"vimagination.zapto.org/byteio"
)

import (
"github.com/seata/seata-go/pkg/common/log"
"github.com/seata/seata-go/pkg/protocol/message"
"vimagination.zapto.org/byteio"
)

type CodecType byte
Expand Down
3 changes: 0 additions & 3 deletions pkg/protocol/codec/common_global_end_request_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ package codec

import (
"github.com/fagongzi/goetty"
)

import (
"github.com/seata/seata-go/pkg/protocol/message"
)

Expand Down
3 changes: 0 additions & 3 deletions pkg/protocol/codec/common_global_end_response_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ package codec

import (
"github.com/fagongzi/goetty"
)

import (
"github.com/seata/seata-go/pkg/protocol/message"
"github.com/seata/seata-go/pkg/protocol/transaction"
)
Expand Down
3 changes: 0 additions & 3 deletions pkg/protocol/codec/common_identify_request_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ package codec

import (
"github.com/fagongzi/goetty"
)

import (
"github.com/seata/seata-go/pkg/protocol/message"
)

Expand Down
3 changes: 0 additions & 3 deletions pkg/protocol/codec/common_identify_response_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ package codec

import (
"github.com/fagongzi/goetty"
)

import (
"github.com/seata/seata-go/pkg/protocol/message"
)

Expand Down
3 changes: 0 additions & 3 deletions pkg/protocol/codec/global_begin_request_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ package codec

import (
"github.com/fagongzi/goetty"
)

import (
"github.com/seata/seata-go/pkg/protocol/message"
)

Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/global_begin_request_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/stretchr/testify/assert"
"testing"
)

func TestGlobalBeginRequestCodec(t *testing.T) {
Expand Down
3 changes: 0 additions & 3 deletions pkg/protocol/codec/global_begin_response_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ package codec

import (
"github.com/fagongzi/goetty"
)

import (
"github.com/seata/seata-go/pkg/protocol/message"
"github.com/seata/seata-go/pkg/protocol/transaction"
)
Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/global_begin_response_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/seata/seata-go/pkg/protocol/transaction"
"github.com/stretchr/testify/assert"
"testing"
)

func TestGlobalBeginResponseCodec(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/global_commit_req_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/stretchr/testify/assert"
"testing"
)

func TestGlobalCommitRequestCodec(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/global_commit_response_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/seata/seata-go/pkg/protocol/transaction"
"github.com/stretchr/testify/assert"
"testing"
)

func TestGlobalCommitResponseCodec(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/global_report_response_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/seata/seata-go/pkg/protocol/transaction"
"github.com/stretchr/testify/assert"
"testing"
)

func TestGlobalReportResponseCodec(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/global_rollback_req_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/stretchr/testify/assert"
"testing"
)

func TestGlobalRollbackRequestCodec(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/global_rollback_response_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/seata/seata-go/pkg/protocol/transaction"
"github.com/stretchr/testify/assert"
"testing"
)

func TestGlobalRollbackResponseCodec(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/global_status_req_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/stretchr/testify/assert"
"testing"
)

func TestGlobalStatusRequestCodec(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/global_status_response_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/seata/seata-go/pkg/protocol/transaction"
"github.com/stretchr/testify/assert"
"testing"
)

func TestGlobalStatusResponseCodec(t *testing.T) {
Expand Down
3 changes: 0 additions & 3 deletions pkg/protocol/codec/register_rm_request_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ package codec

import (
"github.com/fagongzi/goetty"
)

import (
"github.com/seata/seata-go/pkg/protocol/message"
)

Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/register_rm_request_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/stretchr/testify/assert"
"testing"
)

func TestRegisterRMRequestCodec(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/register_rm_response_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/stretchr/testify/assert"
"testing"
)

func TestRegisterRMResponseCodec(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/register_tm_request_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/stretchr/testify/assert"
"testing"
)

func TestRegisterTMRequestCodec(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/protocol/codec/register_tm_response_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
package codec

import (
"testing"

"github.com/seata/seata-go/pkg/protocol/message"
"github.com/stretchr/testify/assert"
"testing"
)

func TestRegisterTMResponseCodec(t *testing.T) {
Expand Down
2 changes: 0 additions & 2 deletions pkg/protocol/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ package resource
import (
"context"
"sync"
)

import (
"github.com/seata/seata-go/pkg/protocol/branch"
)

Expand Down
Loading

0 comments on commit a8612de

Please sign in to comment.