Skip to content

Commit

Permalink
protoc-gen-go-grpc readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hanut19 committed Oct 30, 2024
1 parent d66fc3a commit 9b4666d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/protoc-gen-go-grpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ E.g.:
protoc --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false[,other options...] \
```

**Using of --go-grpc_out and --go-grpc_opt**
- `--go-grpc_out=<output-directory>`: This option specifies the output directory for the generated Go gRPC code. The value should be the directory where you want the generated files to be placed (e.g., `.` for the current directory).
- `--go-grpc_opt=<options>`: This option is used to pass additional settings for code generation, such as configuring compatibility behavior or specifying file path rules. Multiple options can be passed by separating them with commas.

Note that this is not recommended, and the option is only provided to restore
backward compatibility with previously-generated code.

Expand Down

0 comments on commit 9b4666d

Please sign in to comment.