This is an automated email from the ASF dual-hosted git repository. liujun pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/main by this push: new df969fe42 modify README.md (#2585) df969fe42 is described below commit df969fe42d50e44966e9ff39d784a0ab3ed356af Author: finalt <finalt1...@163.com> AuthorDate: Fri Jan 26 12:45:19 2024 +0800 modify README.md (#2585) --- cmd/protoc-gen-go-triple/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/protoc-gen-go-triple/README.md b/cmd/protoc-gen-go-triple/README.md index e04c7058f..26655b82c 100644 --- a/cmd/protoc-gen-go-triple/README.md +++ b/cmd/protoc-gen-go-triple/README.md @@ -40,10 +40,10 @@ Make sure to add the resulting binary to your system's PATH. To generate Triple code from your Protocol Buffer files, use the `protoc` compiler with the `protoc-gen-go-triple` plugin. Here's an example command: ```shell -protoc --go_out=. --go_opt=paths=source_relative --triple-go_out=. your_file.proto +protoc --go_out=. --go_opt=paths=source_relative --go-triple_out=. your_file.proto ``` -Both the `--go_out` flag and `--triple-go_out` flag should be set to `.`. Please set the generated file path in the proto file using the `go_package` option. +Both the `--go_out` flag and `--go-triple_out` flag should be set to `.`. Please set the generated file path in the proto file using the `go_package` option. ## Example @@ -94,7 +94,7 @@ The package for `greet.pb.go` and `greet.triple.go` are `greet` You can use the following command to generate the Go code: ```shell -protoc --go_out=. --go_opt=paths=source_relative --triple-go_out=. greet.proto +protoc --go_out=. --go_opt=paths=source_relative --go-triple_out=. greet.proto ``` This will generate the Go code for the Protobuf code in `greet.pb.go` and the Triple code in `greet.triple.go`.