From 0b69d3fcf06f49a15c3d159e083ca475637203e5 Mon Sep 17 00:00:00 2001 From: Tristan Fletcher Date: Fri, 28 Mar 2025 15:34:20 -0700 Subject: [PATCH 1/2] add wildcard usage to the readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 647ddb93..1f7fde56 100644 --- a/README.md +++ b/README.md @@ -116,13 +116,14 @@ message Label { } ``` - - Alternatively, you can enumerate the pooled objects with `--go-vtproto_opt=pool=.` flags passed via the CLI: + - Alternatively, you can enumerate the pooled objects/wildcard them with `--go-vtproto_opt=pool=.` flags passed via the CLI: ``` $(VTROOT)/bin/protoc ... \ --go-vtproto_opt=features=marshal+unmarshal+size+pool \ --go-vtproto_opt=pool=vitess.io/vitess/go/vt/proto/query.Row \ --go-vtproto_opt=pool=vitess.io/vitess/go/vt/proto/binlogdata.VStreamRowsResponse \ + --go-vtproto_opt=pool=vitess.io/vitess/go/vt/proto/response.* ``` 6. (Optional) If you are handling messages containing unknown fields and don't intend to forward these messages to a tool that might expect these fields, you can ignore them using the `ignoreUnknownFields` option. From 31b44fa3644aab31822e6e97d131fbd45e57a2a4 Mon Sep 17 00:00:00 2001 From: Tristan Fletcher Date: Fri, 28 Mar 2025 15:37:05 -0700 Subject: [PATCH 2/2] add trailing slash --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f7fde56..24753f78 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ message Label { --go-vtproto_opt=features=marshal+unmarshal+size+pool \ --go-vtproto_opt=pool=vitess.io/vitess/go/vt/proto/query.Row \ --go-vtproto_opt=pool=vitess.io/vitess/go/vt/proto/binlogdata.VStreamRowsResponse \ - --go-vtproto_opt=pool=vitess.io/vitess/go/vt/proto/response.* + --go-vtproto_opt=pool=vitess.io/vitess/go/vt/proto/response.* \ ``` 6. (Optional) If you are handling messages containing unknown fields and don't intend to forward these messages to a tool that might expect these fields, you can ignore them using the `ignoreUnknownFields` option.