Skip to content

Commit 5490330

Browse files
committed
chore(go): reformat code
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent 04187c2 commit 5490330

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

examples/go/complex-server/cmd/complex-server-nats/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
"sync"
1111
"syscall"
1212

13-
"github.com/google/uuid"
14-
"github.com/nats-io/nats.go"
1513
server "github.com/bytecodealliance/wrpc/examples/go/complex-server/bindings"
1614
"github.com/bytecodealliance/wrpc/examples/go/complex-server/bindings/exports/wrpc_examples/complex/resources"
1715
wrpc "github.com/bytecodealliance/wrpc/go"
1816
wrpcnats "github.com/bytecodealliance/wrpc/go/nats"
17+
"github.com/google/uuid"
18+
"github.com/nats-io/nats.go"
1919
)
2020

2121
type Foo struct {

examples/go/hello-client/cmd/hello-client-nats/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"log/slog"
88
"os"
99

10-
"github.com/nats-io/nats.go"
1110
"github.com/bytecodealliance/wrpc/examples/go/hello-client/bindings/wrpc_examples/hello/handler"
1211
wrpcnats "github.com/bytecodealliance/wrpc/go/nats"
12+
"github.com/nats-io/nats.go"
1313
)
1414

1515
func run() (err error) {

examples/go/hello-server/cmd/hello-server-nats/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"os/signal"
1010
"syscall"
1111

12-
"github.com/nats-io/nats.go"
1312
server "github.com/bytecodealliance/wrpc/examples/go/hello-server/bindings"
1413
wrpcnats "github.com/bytecodealliance/wrpc/go/nats"
14+
"github.com/nats-io/nats.go"
1515
)
1616

1717
type Handler struct{}

go/nats/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"log/slog"
99
"sync"
1010

11-
"github.com/nats-io/nats.go"
1211
wrpc "github.com/bytecodealliance/wrpc/go"
12+
"github.com/nats-io/nats.go"
1313
)
1414

1515
type headerKey struct{}

tests/go/async_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/nats-io/nats.go"
1413
wrpcnats "github.com/bytecodealliance/wrpc/go/nats"
1514
integration "github.com/bytecodealliance/wrpc/tests/go"
1615
"github.com/bytecodealliance/wrpc/tests/go/bindings/async_client/wrpc_test/integration/async"
1716
"github.com/bytecodealliance/wrpc/tests/go/bindings/async_server"
1817
"github.com/bytecodealliance/wrpc/tests/go/internal"
18+
"github.com/nats-io/nats.go"
1919
)
2020

2121
func TestAsync(t *testing.T) {

tests/go/cmd/sync-server-nats/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"os/signal"
99
"syscall"
1010

11-
"github.com/nats-io/nats.go"
1211
wrpcnats "github.com/bytecodealliance/wrpc/go/nats"
1312
integration "github.com/bytecodealliance/wrpc/tests/go"
1413
"github.com/bytecodealliance/wrpc/tests/go/bindings/sync_server"
14+
"github.com/nats-io/nats.go"
1515
)
1616

1717
func run(url string) error {

tests/go/resources.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"fmt"
88
"sync"
99

10-
"github.com/google/uuid"
1110
wrpc "github.com/bytecodealliance/wrpc/go"
1211
"github.com/bytecodealliance/wrpc/tests/go/bindings/resources_server/exports/wrpc_test/integration/resources"
12+
"github.com/google/uuid"
1313
)
1414

1515
type Foo struct {

tests/go/resources_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/nats-io/nats.go"
1211
wrpc "github.com/bytecodealliance/wrpc/go"
1312
wrpcnats "github.com/bytecodealliance/wrpc/go/nats"
1413
integration "github.com/bytecodealliance/wrpc/tests/go"
1514
"github.com/bytecodealliance/wrpc/tests/go/bindings/resources_client/strange"
1615
"github.com/bytecodealliance/wrpc/tests/go/bindings/resources_client/wrpc_test/integration/resources"
1716
"github.com/bytecodealliance/wrpc/tests/go/bindings/resources_server"
1817
"github.com/bytecodealliance/wrpc/tests/go/internal"
18+
"github.com/nats-io/nats.go"
1919
)
2020

2121
func TestResources(t *testing.T) {

tests/go/sync_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/nats-io/nats.go"
1312
wrpc "github.com/bytecodealliance/wrpc/go"
1413
wrpcnats "github.com/bytecodealliance/wrpc/go/nats"
1514
integration "github.com/bytecodealliance/wrpc/tests/go"
1615
"github.com/bytecodealliance/wrpc/tests/go/bindings/sync_client/foo"
1716
"github.com/bytecodealliance/wrpc/tests/go/bindings/sync_client/wrpc_test/integration/sync"
1817
"github.com/bytecodealliance/wrpc/tests/go/bindings/sync_server"
1918
"github.com/bytecodealliance/wrpc/tests/go/internal"
19+
"github.com/nats-io/nats.go"
2020
)
2121

2222
func TestSync(t *testing.T) {

0 commit comments

Comments
 (0)