| 1 | # The protoveneer tool |
| 2 | |
| 3 | Protoveneer is an experimental tool that generates idiomatic Go types that |
| 4 | correspond to protocol buffer messages and enums -- a veneer on top of the proto |
| 5 | layer. |
| 6 | |
| 7 | ## Usage |
| 8 | |
| 9 | Call protoveneer with a config file and a directory containing *.pb.go files: |
| 10 | |
| 11 | protoveneer config.yaml ../ai/generativelanguage/apiv1beta/generativelanguagepb |
| 12 | |
| 13 | That will write Go source code to the current directory, or the one specified by -outdir. |
| 14 | |
| 15 | To add a license to the generated code, pass the -license flag with a filename. |
| 16 | |
| 17 | See testdata/basic/config.yaml for a sample config file. |
| 18 | |
| 19 | The generated code requires the "support" package. Copy this package to your |
| 20 | project and provide its import path as the value of `supportImportPath` in the |
| 21 | config file. |
| 22 | |
| 23 |