Skip to content

Commit

Permalink
style : use gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jin-gou committed Jan 5, 2024
1 parent 7f5b8b8 commit 171373e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions hex/biz/dal/redis/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package redis

import (
"context"

"cwgo/example/hex/conf"

"github.com/redis/go-redis/v9"
Expand Down
3 changes: 2 additions & 1 deletion hex/biz/service/hello_method.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ package service

import (
"context"
example "cwgo/example/hex/kitex_gen/hello/example"
"fmt"

example "cwgo/example/hex/kitex_gen/hello/example"

"github.com/cloudwego/kitex/pkg/klog"
)

Expand Down
3 changes: 2 additions & 1 deletion hex/biz/service/hello_method_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ package service

import (
"context"
example "cwgo/example/hex/kitex_gen/hello/example"
"testing"

example "cwgo/example/hex/kitex_gen/hello/example"
)

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

import (
"context"
"fmt"

"cwgo/example/hex/kitex_gen/hello/example"
"cwgo/example/hex/kitex_gen/hello/example/helloservice"
"fmt"

"github.com/cloudwego/kitex/client"
)
Expand Down
1 change: 1 addition & 0 deletions hex/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package main

import (
"context"

"cwgo/example/hex/biz/service"
example "cwgo/example/hex/kitex_gen/hello/example"
)
Expand Down
3 changes: 2 additions & 1 deletion hex/hex_trans_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ package main

import (
"context"
"cwgo/example/hex/biz/router"
"errors"
"fmt"
"net"
"regexp"

"cwgo/example/hex/biz/router"

"github.com/cloudwego/hertz/pkg/app"
hertzServer "github.com/cloudwego/hertz/pkg/app/server"
"github.com/cloudwego/hertz/pkg/common/utils"
Expand Down
3 changes: 2 additions & 1 deletion hex/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
package main

import (
"net"

"cwgo/example/hex/conf"
"cwgo/example/hex/kitex_gen/hello/example/helloservice"
"net"

"github.com/cloudwego/kitex/pkg/klog"
"github.com/cloudwego/kitex/pkg/rpcinfo"
Expand Down

0 comments on commit 171373e

Please sign in to comment.