Skip to content

Commit

Permalink
move to go-micro.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Oct 13, 2021
1 parent ca594b9 commit a87f9a8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/protoc-gen-micro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This is protobuf code generation for go-micro. We use protoc-gen-micro to reduce
## Install

```
go install github.com/asim/go-micro/cmd/protoc-gen-micro/v4@latest
go install go-micro.dev/cmd/protoc-gen-micro/v4@latest
```

Also required:
Expand Down Expand Up @@ -112,7 +112,7 @@ message Response {
}
```

The proto generates a `RegisterGreeterHandler` function with a [api.Endpoint](https://godoc.org/github.com/asim/go-micro/v3/api#Endpoint).
The proto generates a `RegisterGreeterHandler` function with a [api.Endpoint](https://godoc.org/go-micro.dev/v3/api#Endpoint).

```diff
func RegisterGreeterHandler(s server.Server, hdlr GreeterHandler, opts ...server.HandlerOption) error {
Expand Down
2 changes: 1 addition & 1 deletion cmd/protoc-gen-micro/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/asim/go-micro/cmd/protoc-gen-micro/v4
module go-micro.dev/cmd/protoc-gen-micro/v4

go 1.16

Expand Down
4 changes: 2 additions & 2 deletions cmd/protoc-gen-micro/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ import (
"io/ioutil"
"os"

"github.com/asim/go-micro/cmd/protoc-gen-micro/v4/generator"
_ "github.com/asim/go-micro/cmd/protoc-gen-micro/v4/plugin/micro"
"go-micro.dev/cmd/protoc-gen-micro/v4/generator"
_ "go-micro.dev/cmd/protoc-gen-micro/v4/plugin/micro"
"google.golang.org/protobuf/proto"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/protoc-gen-micro/plugin/micro/micro.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"strings"

"github.com/asim/go-micro/cmd/protoc-gen-micro/v4/generator"
"go-micro.dev/cmd/protoc-gen-micro/v4/generator"
options "google.golang.org/genproto/googleapis/api/annotations"
"google.golang.org/protobuf/proto"
pb "google.golang.org/protobuf/types/descriptorpb"
Expand Down

0 comments on commit a87f9a8

Please sign in to comment.