From a87f9a808cbd98afaa4232b6eb70f3fa307f7ce5 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 13 Oct 2021 09:44:24 +0100 Subject: [PATCH] move to go-micro.dev --- cmd/protoc-gen-micro/README.md | 4 ++-- cmd/protoc-gen-micro/go.mod | 2 +- cmd/protoc-gen-micro/main.go | 4 ++-- cmd/protoc-gen-micro/plugin/micro/micro.go | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/protoc-gen-micro/README.md b/cmd/protoc-gen-micro/README.md index ad311139be..f6ed07d285 100644 --- a/cmd/protoc-gen-micro/README.md +++ b/cmd/protoc-gen-micro/README.md @@ -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 { diff --git a/cmd/protoc-gen-micro/go.mod b/cmd/protoc-gen-micro/go.mod index 3fa50a4cec..3d00aae0bb 100644 --- a/cmd/protoc-gen-micro/go.mod +++ b/cmd/protoc-gen-micro/go.mod @@ -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 diff --git a/cmd/protoc-gen-micro/main.go b/cmd/protoc-gen-micro/main.go index a51e1bf481..9f69b59b5c 100644 --- a/cmd/protoc-gen-micro/main.go +++ b/cmd/protoc-gen-micro/main.go @@ -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" ) diff --git a/cmd/protoc-gen-micro/plugin/micro/micro.go b/cmd/protoc-gen-micro/plugin/micro/micro.go index d44000a333..53ec8361fe 100644 --- a/cmd/protoc-gen-micro/plugin/micro/micro.go +++ b/cmd/protoc-gen-micro/plugin/micro/micro.go @@ -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"