Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Jun 18, 2024
1 parent d0ce6dc commit d52e855
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 1 addition & 4 deletions gen/generator/genTriple.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package generator

import (
"github.com/dubbogo/protoc-gen-go-triple/v3/util"
"os"
"path/filepath"
"strings"
Expand All @@ -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

Expand Down
5 changes: 1 addition & 4 deletions gen/generator/tripleTpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit d52e855

Please sign in to comment.