Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Mar 27, 2024
1 parent 4eb178e commit 4c2004a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,27 @@

The `protoc-gen-go-triple` tool generates Go language bindings for Dubbo `service`s based on protobuf definition files.

For users of dubbo-go version 3.2.0 and above, please use `protoc-gen-go-triple` version 3.0.0 or higher. It is also recommended for other dubbo-go users to use `protoc-gen-go-triple` version 3.0.0 or higher. To generate stubs compatible with dubbo-go version 3.1.x and below, please set the following option:
For users of dubbo-go `v3.2.0` and above, please use `protoc-gen-go-triple` version `v3.0.0` or higher.

```
protoc --go-triple_out=useOldVersion=true[,other options...]:.
```
> It is also recommended for dubbo-go users `v3.1.x` or below to use `protoc-gen-go-triple` version `v3.0.0` or higher. To generate stubs compatible with dubbo-go `v3.1.x` and below, please set the following option:
>
> ```
> protoc --go-triple_out=useOldVersion=true[,other options...]:.
> ```
## Prerequisites
Before using `protoc-gen-go-triple`, make sure you have the following prerequisites installed on your system:
- Go (version 1.17 or higher)
- Go (version 1.20 or higher)
- Protocol Buffers (version 3.0 or higher)
## Installation
To install `protoc-gen-go-triple`, you can use the `go get` command:
```shell
go get github.com/dubbogo/protoc-gen-go-triple
go install github.com/dubbogo/protoc-gen-go-triple/[email protected]
```
Alternatively, you can clone the GitHub repository and build the binary manually:
Expand Down

0 comments on commit 4c2004a

Please sign in to comment.