Open AWinterman opened 2 years ago
Do you mean the proto files defining the well-known types?
Do you mean the proto files defining the well-known types?
Yep!
I think they’re at least available from the mainline protobuf package: https://github.com/protocolbuffers/protobuf
For example, I found here the: any.proto
that is well and good, but what happens if that project ever changes? which version of the project is this repository defined from?
For versions >= 1.20, i.e. https://github.com/protocolbuffers/protobuf-go/, the generated Go code for WKT uses the proto files from a downloaded version of the protobuf source repository that @puellanivis pointed out. The version used is specified here -- https://github.com/protocolbuffers/protobuf-go/blob/master/integration_test.go#L38.
Perhaps a link to that line in the documentation for the package would be helpful? Or better I'd like to refer to those protos in my project-- is there a way to package them so they are pulled in by go get
?
I'd like to use the library methods here, and also use the same .proto files that were used to generate these files. While I know that I can simply provide my own, I'd like the assurance of pulling down the same versions of the proto files as these are generated from.
How can I do that? At the readme should contain a link to those files.
Thanks!