diff --git a/README.md b/README.md index 26655b8..fa08fa4 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Before using `protoc-gen-go-triple`, make sure you have the following prerequisi To install `protoc-gen-go-triple`, you can use the `go get` command: ```shell -go get dubbo.apache.org/dubbo-go/v3/cmd/protoc-gen-go-triple +go get github.com/dubbogo/protoc-gen-go-triple/v3 ``` Alternatively, you can clone the GitHub repository and build the binary manually: diff --git a/gen/generator/genTriple.go b/gen/generator/genTriple.go index c69ca0a..5b0a6da 100644 --- a/gen/generator/genTriple.go +++ b/gen/generator/genTriple.go @@ -18,6 +18,7 @@ package generator import ( + "github.com/dubbogo/protoc-gen-go-triple/v3/util" "os" "path/filepath" "strings" @@ -28,10 +29,6 @@ import ( "github.com/pkg/errors" ) -import ( - "dubbo.apache.org/dubbo-go/v3/cmd/protoc-gen-go-triple/util" -) - func (g *Generator) parseTripleToString(t TripleGo) (string, error) { var builder strings.Builder diff --git a/gen/generator/tripleTpl.go b/gen/generator/tripleTpl.go index 20d2229..6e5e689 100644 --- a/gen/generator/tripleTpl.go +++ b/gen/generator/tripleTpl.go @@ -18,15 +18,12 @@ package generator import ( + "github.com/dubbogo/protoc-gen-go-triple/v3/util" "html/template" "log" "strings" ) -import ( - "dubbo.apache.org/dubbo-go/v3/cmd/protoc-gen-go-triple/util" -) - var ( Tpls []*template.Template TplPreamble *template.Template diff --git a/main.go b/main.go index 4a8b64b..89b4331 100644 --- a/main.go +++ b/main.go @@ -34,9 +34,9 @@ import ( ) import ( - "dubbo.apache.org/dubbo-go/v3/cmd/protoc-gen-go-triple/gen/generator" - "dubbo.apache.org/dubbo-go/v3/cmd/protoc-gen-go-triple/internal/old_triple" - "dubbo.apache.org/dubbo-go/v3/cmd/protoc-gen-go-triple/internal/version" + "github.com/dubbogo/protoc-gen-go-triple/v3/gen/generator" + "github.com/dubbogo/protoc-gen-go-triple/v3/internal/old_triple" + "github.com/dubbogo/protoc-gen-go-triple/v3/internal/version" ) const (