1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-30 10:10:44 +02:00

move to go-micro.dev

This commit is contained in:
Asim Aslam 2021-10-13 09:44:24 +01:00
parent ca594b922c
commit a87f9a808c
4 changed files with 6 additions and 6 deletions

View File

@ -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:
@ -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 {

View File

@ -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

View File

@ -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"
)

View File

@ -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"