diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml
index 592fc91e..2b41de66 100644
--- a/.github/workflows/ci-workflow.yml
+++ b/.github/workflows/ci-workflow.yml
@@ -18,9 +18,9 @@ jobs:
uses: actions/checkout@v3
- name: Setup go
- - uses: actions/setup-go@v3
+ uses: actions/setup-go@v3
with:
- go-version: 1.18
+ go-version: 1.19
- name: Setup protoc
env:
@@ -29,8 +29,6 @@ jobs:
- name: Protoc version
run: PATH=$HOME/bin:$PATH protoc --version
- - name: env
- run: env && go env && pwd
- name: Build server all
- run: make buildserverall
+ run: PATH=$HOME/bin:$PATH make buildserverall
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 760585ee..1328aba5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
## [Unreleased]
+### Bug Fixes
+
+- [#14](https://github.com/cosmos/gogoproto/pull/14) Fix `make regenerate`.
+
## [v1.4.2](https://github.com/cosmos/gogoproto/releases/tag/v1.4.2) - 2022-09-14
### Features
diff --git a/GOLANG_CONTRIBUTORS b/GOLANG_CONTRIBUTORS
deleted file mode 100644
index b368efb7..00000000
--- a/GOLANG_CONTRIBUTORS
+++ /dev/null
@@ -1,5 +0,0 @@
-The contributors to the Go protobuf repository:
-
-# This source code was written by the Go contributors.
-# The master list of contributors is in the main Go distribution,
-# visible at http://tip.golang.org/CONTRIBUTORS.
\ No newline at end of file
diff --git a/Makefile b/Makefile
index 0792c691..d345e215 100644
--- a/Makefile
+++ b/Makefile
@@ -53,6 +53,7 @@ install:
go install ./protoc-gen-gogofaster
go install ./protoc-gen-gogoslick
go install ./protoc-gen-gostring
+ go install ./protoc-gen-gogotypes
go install ./protoc-min-version
go install ./protoc-gen-combo
go install ./protoc-gen-gocosmos
diff --git a/bench.md b/bench.md
deleted file mode 100644
index 2fb9a5a2..00000000
--- a/bench.md
+++ /dev/null
@@ -1,190 +0,0 @@
-# Benchmarks
-
-## How to reproduce
-
-For a comparison run:
-
- make bench
-
-followed by [benchcmp](http://code.google.com/p/go/source/browse/misc/benchcmp benchcmp) on the resulting files:
-
- $GOROOT/misc/benchcmp $GOPATH/src/github.com/cosmos/gogoproto/test/mixbench/marshal.txt $GOPATH/src/github.com/gogo/protobuf/test/mixbench/marshaler.txt
- $GOROOT/misc/benchcmp $GOPATH/src/github.com/cosmos/gogoproto/test/mixbench/unmarshal.txt $GOPATH/src/github.com/gogo/protobuf/test/mixbench/unmarshaler.txt
-
-Benchmarks ran on Revision: 11c56be39364
-
-June 2013
-
-Processor 2,66 GHz Intel Core i7
-
-Memory 8 GB 1067 MHz DDR3
-
-## Marshaler
-
-
-benchmark | old ns/op | new ns/op | delta |
-BenchmarkNidOptNativeProtoMarshal | 2656 | 889 | -66.53% |
-BenchmarkNinOptNativeProtoMarshal | 2651 | 1015 | -61.71% |
-BenchmarkNidRepNativeProtoMarshal | 42661 | 12519 | -70.65% |
-BenchmarkNinRepNativeProtoMarshal | 42306 | 12354 | -70.80% |
-BenchmarkNidRepPackedNativeProtoMarshal | 34148 | 11902 | -65.15% |
-BenchmarkNinRepPackedNativeProtoMarshal | 33375 | 11969 | -64.14% |
-BenchmarkNidOptStructProtoMarshal | 7148 | 3727 | -47.86% |
-BenchmarkNinOptStructProtoMarshal | 6956 | 3481 | -49.96% |
-BenchmarkNidRepStructProtoMarshal | 46551 | 19492 | -58.13% |
-BenchmarkNinRepStructProtoMarshal | 46715 | 19043 | -59.24% |
-BenchmarkNidEmbeddedStructProtoMarshal | 5231 | 2050 | -60.81% |
-BenchmarkNinEmbeddedStructProtoMarshal | 4665 | 2000 | -57.13% |
-BenchmarkNidNestedStructProtoMarshal | 181106 | 103604 | -42.79% |
-BenchmarkNinNestedStructProtoMarshal | 182053 | 102069 | -43.93% |
-BenchmarkNidOptCustomProtoMarshal | 1209 | 310 | -74.36% |
-BenchmarkNinOptCustomProtoMarshal | 1435 | 277 | -80.70% |
-BenchmarkNidRepCustomProtoMarshal | 4126 | 763 | -81.51% |
-BenchmarkNinRepCustomProtoMarshal | 3972 | 769 | -80.64% |
-BenchmarkNinOptNativeUnionProtoMarshal | 973 | 303 | -68.86% |
-BenchmarkNinOptStructUnionProtoMarshal | 1536 | 521 | -66.08% |
-BenchmarkNinEmbeddedStructUnionProtoMarshal | 2327 | 884 | -62.01% |
-BenchmarkNinNestedStructUnionProtoMarshal | 2070 | 743 | -64.11% |
-BenchmarkTreeProtoMarshal | 1554 | 838 | -46.07% |
-BenchmarkOrBranchProtoMarshal | 3156 | 2012 | -36.25% |
-BenchmarkAndBranchProtoMarshal | 3183 | 1996 | -37.29% |
-BenchmarkLeafProtoMarshal | 965 | 606 | -37.20% |
-BenchmarkDeepTreeProtoMarshal | 2316 | 1283 | -44.60% |
-BenchmarkADeepBranchProtoMarshal | 2719 | 1492 | -45.13% |
-BenchmarkAndDeepBranchProtoMarshal | 4663 | 2922 | -37.34% |
-BenchmarkDeepLeafProtoMarshal | 1849 | 1016 | -45.05% |
-BenchmarkNilProtoMarshal | 439 | 76 | -82.53% |
-BenchmarkNidOptEnumProtoMarshal | 514 | 152 | -70.43% |
-BenchmarkNinOptEnumProtoMarshal | 550 | 158 | -71.27% |
-BenchmarkNidRepEnumProtoMarshal | 647 | 207 | -68.01% |
-BenchmarkNinRepEnumProtoMarshal | 662 | 213 | -67.82% |
-BenchmarkTimerProtoMarshal | 934 | 271 | -70.99% |
-BenchmarkMyExtendableProtoMarshal | 608 | 185 | -69.57% |
-BenchmarkOtherExtenableProtoMarshal | 1112 | 332 | -70.14% |
-
-
-
-benchmark | old MB/s | new MB/s | speedup |
-BenchmarkNidOptNativeProtoMarshal | 126.86 | 378.86 | 2.99x |
-BenchmarkNinOptNativeProtoMarshal | 114.27 | 298.42 | 2.61x |
-BenchmarkNidRepNativeProtoMarshal | 164.25 | 561.20 | 3.42x |
-BenchmarkNinRepNativeProtoMarshal | 166.10 | 568.23 | 3.42x |
-BenchmarkNidRepPackedNativeProtoMarshal | 99.10 | 283.97 | 2.87x |
-BenchmarkNinRepPackedNativeProtoMarshal | 101.30 | 282.31 | 2.79x |
-BenchmarkNidOptStructProtoMarshal | 176.83 | 339.07 | 1.92x |
-BenchmarkNinOptStructProtoMarshal | 163.59 | 326.57 | 2.00x |
-BenchmarkNidRepStructProtoMarshal | 178.84 | 427.49 | 2.39x |
-BenchmarkNinRepStructProtoMarshal | 178.70 | 437.69 | 2.45x |
-BenchmarkNidEmbeddedStructProtoMarshal | 124.24 | 317.56 | 2.56x |
-BenchmarkNinEmbeddedStructProtoMarshal | 132.03 | 307.99 | 2.33x |
-BenchmarkNidNestedStructProtoMarshal | 192.91 | 337.86 | 1.75x |
-BenchmarkNinNestedStructProtoMarshal | 192.44 | 344.45 | 1.79x |
-BenchmarkNidOptCustomProtoMarshal | 29.77 | 116.03 | 3.90x |
-BenchmarkNinOptCustomProtoMarshal | 22.29 | 115.38 | 5.18x |
-BenchmarkNidRepCustomProtoMarshal | 35.14 | 189.80 | 5.40x |
-BenchmarkNinRepCustomProtoMarshal | 36.50 | 188.40 | 5.16x |
-BenchmarkNinOptNativeUnionProtoMarshal | 32.87 | 105.39 | 3.21x |
-BenchmarkNinOptStructUnionProtoMarshal | 66.40 | 195.76 | 2.95x |
-BenchmarkNinEmbeddedStructUnionProtoMarshal | 93.24 | 245.26 | 2.63x |
-BenchmarkNinNestedStructUnionProtoMarshal | 57.49 | 160.06 | 2.78x |
-BenchmarkTreeProtoMarshal | 137.64 | 255.12 | 1.85x |
-BenchmarkOrBranchProtoMarshal | 137.80 | 216.10 | 1.57x |
-BenchmarkAndBranchProtoMarshal | 136.64 | 217.89 | 1.59x |
-BenchmarkLeafProtoMarshal | 214.48 | 341.53 | 1.59x |
-BenchmarkDeepTreeProtoMarshal | 95.85 | 173.03 | 1.81x |
-BenchmarkADeepBranchProtoMarshal | 82.73 | 150.78 | 1.82x |
-BenchmarkAndDeepBranchProtoMarshal | 96.72 | 153.98 | 1.59x |
-BenchmarkDeepLeafProtoMarshal | 117.34 | 213.41 | 1.82x |
-BenchmarkNidOptEnumProtoMarshal | 3.89 | 13.16 | 3.38x |
-BenchmarkNinOptEnumProtoMarshal | 1.82 | 6.30 | 3.46x |
-BenchmarkNidRepEnumProtoMarshal | 12.36 | 38.50 | 3.11x |
-BenchmarkNinRepEnumProtoMarshal | 12.08 | 37.53 | 3.11x |
-BenchmarkTimerProtoMarshal | 73.81 | 253.87 | 3.44x |
-BenchmarkMyExtendableProtoMarshal | 13.15 | 43.08 | 3.28x |
-BenchmarkOtherExtenableProtoMarshal | 24.28 | 81.09 | 3.34x |
-
-
-## Unmarshaler
-
-
-benchmark | old ns/op | new ns/op | delta |
-BenchmarkNidOptNativeProtoUnmarshal | 2521 | 1006 | -60.10% |
-BenchmarkNinOptNativeProtoUnmarshal | 2529 | 1750 | -30.80% |
-BenchmarkNidRepNativeProtoUnmarshal | 49067 | 35299 | -28.06% |
-BenchmarkNinRepNativeProtoUnmarshal | 47990 | 35456 | -26.12% |
-BenchmarkNidRepPackedNativeProtoUnmarshal | 26456 | 23950 | -9.47% |
-BenchmarkNinRepPackedNativeProtoUnmarshal | 26499 | 24037 | -9.29% |
-BenchmarkNidOptStructProtoUnmarshal | 6803 | 3873 | -43.07% |
-BenchmarkNinOptStructProtoUnmarshal | 6786 | 4154 | -38.79% |
-BenchmarkNidRepStructProtoUnmarshal | 56276 | 31970 | -43.19% |
-BenchmarkNinRepStructProtoUnmarshal | 48750 | 31832 | -34.70% |
-BenchmarkNidEmbeddedStructProtoUnmarshal | 4556 | 1973 | -56.69% |
-BenchmarkNinEmbeddedStructProtoUnmarshal | 4485 | 1975 | -55.96% |
-BenchmarkNidNestedStructProtoUnmarshal | 223395 | 135844 | -39.19% |
-BenchmarkNinNestedStructProtoUnmarshal | 226446 | 134022 | -40.82% |
-BenchmarkNidOptCustomProtoUnmarshal | 1859 | 300 | -83.86% |
-BenchmarkNinOptCustomProtoUnmarshal | 1486 | 402 | -72.95% |
-BenchmarkNidRepCustomProtoUnmarshal | 8229 | 1669 | -79.72% |
-BenchmarkNinRepCustomProtoUnmarshal | 8253 | 1649 | -80.02% |
-BenchmarkNinOptNativeUnionProtoUnmarshal | 840 | 307 | -63.45% |
-BenchmarkNinOptStructUnionProtoUnmarshal | 1395 | 639 | -54.19% |
-BenchmarkNinEmbeddedStructUnionProtoUnmarshal | 2297 | 1167 | -49.19% |
-BenchmarkNinNestedStructUnionProtoUnmarshal | 1820 | 889 | -51.15% |
-BenchmarkTreeProtoUnmarshal | 1521 | 720 | -52.66% |
-BenchmarkOrBranchProtoUnmarshal | 2669 | 1385 | -48.11% |
-BenchmarkAndBranchProtoUnmarshal | 2667 | 1420 | -46.76% |
-BenchmarkLeafProtoUnmarshal | 1171 | 584 | -50.13% |
-BenchmarkDeepTreeProtoUnmarshal | 2065 | 1081 | -47.65% |
-BenchmarkADeepBranchProtoUnmarshal | 2695 | 1178 | -56.29% |
-BenchmarkAndDeepBranchProtoUnmarshal | 4055 | 1918 | -52.70% |
-BenchmarkDeepLeafProtoUnmarshal | 1758 | 865 | -50.80% |
-BenchmarkNilProtoUnmarshal | 564 | 63 | -88.79% |
-BenchmarkNidOptEnumProtoUnmarshal | 762 | 73 | -90.34% |
-BenchmarkNinOptEnumProtoUnmarshal | 764 | 163 | -78.66% |
-BenchmarkNidRepEnumProtoUnmarshal | 1078 | 447 | -58.53% |
-BenchmarkNinRepEnumProtoUnmarshal | 1071 | 479 | -55.28% |
-BenchmarkTimerProtoUnmarshal | 1128 | 362 | -67.91% |
-BenchmarkMyExtendableProtoUnmarshal | 808 | 217 | -73.14% |
-BenchmarkOtherExtenableProtoUnmarshal | 1233 | 517 | -58.07% |
-
-
-
-benchmark | old MB/s | new MB/s | speedup |
-BenchmarkNidOptNativeProtoUnmarshal | 133.67 | 334.98 | 2.51x |
-BenchmarkNinOptNativeProtoUnmarshal | 119.77 | 173.08 | 1.45x |
-BenchmarkNidRepNativeProtoUnmarshal | 143.23 | 199.12 | 1.39x |
-BenchmarkNinRepNativeProtoUnmarshal | 146.07 | 198.16 | 1.36x |
-BenchmarkNidRepPackedNativeProtoUnmarshal | 127.80 | 141.04 | 1.10x |
-BenchmarkNinRepPackedNativeProtoUnmarshal | 127.55 | 140.78 | 1.10x |
-BenchmarkNidOptStructProtoUnmarshal | 185.79 | 326.31 | 1.76x |
-BenchmarkNinOptStructProtoUnmarshal | 167.68 | 273.66 | 1.63x |
-BenchmarkNidRepStructProtoUnmarshal | 147.88 | 260.39 | 1.76x |
-BenchmarkNinRepStructProtoUnmarshal | 171.20 | 261.97 | 1.53x |
-BenchmarkNidEmbeddedStructProtoUnmarshal | 142.86 | 329.42 | 2.31x |
-BenchmarkNinEmbeddedStructProtoUnmarshal | 137.33 | 311.83 | 2.27x |
-BenchmarkNidNestedStructProtoUnmarshal | 154.97 | 259.47 | 1.67x |
-BenchmarkNinNestedStructProtoUnmarshal | 154.32 | 258.42 | 1.67x |
-BenchmarkNidOptCustomProtoUnmarshal | 19.36 | 119.66 | 6.18x |
-BenchmarkNinOptCustomProtoUnmarshal | 21.52 | 79.50 | 3.69x |
-BenchmarkNidRepCustomProtoUnmarshal | 17.62 | 86.86 | 4.93x |
-BenchmarkNinRepCustomProtoUnmarshal | 17.57 | 87.92 | 5.00x |
-BenchmarkNinOptNativeUnionProtoUnmarshal | 38.07 | 104.12 | 2.73x |
-BenchmarkNinOptStructUnionProtoUnmarshal | 73.08 | 159.54 | 2.18x |
-BenchmarkNinEmbeddedStructUnionProtoUnmarshal | 94.00 | 185.92 | 1.98x |
-BenchmarkNinNestedStructUnionProtoUnmarshal | 65.35 | 133.75 | 2.05x |
-BenchmarkTreeProtoUnmarshal | 141.28 | 297.13 | 2.10x |
-BenchmarkOrBranchProtoUnmarshal | 162.56 | 313.96 | 1.93x |
-BenchmarkAndBranchProtoUnmarshal | 163.06 | 306.15 | 1.88x |
-BenchmarkLeafProtoUnmarshal | 176.72 | 354.19 | 2.00x |
-BenchmarkDeepTreeProtoUnmarshal | 107.50 | 205.30 | 1.91x |
-BenchmarkADeepBranchProtoUnmarshal | 83.48 | 190.88 | 2.29x |
-BenchmarkAndDeepBranchProtoUnmarshal | 110.97 | 234.60 | 2.11x |
-BenchmarkDeepLeafProtoUnmarshal | 123.40 | 250.73 | 2.03x |
-BenchmarkNidOptEnumProtoUnmarshal | 2.62 | 27.16 | 10.37x |
-BenchmarkNinOptEnumProtoUnmarshal | 1.31 | 6.11 | 4.66x |
-BenchmarkNidRepEnumProtoUnmarshal | 7.42 | 17.88 | 2.41x |
-BenchmarkNinRepEnumProtoUnmarshal | 7.47 | 16.69 | 2.23x |
-BenchmarkTimerProtoUnmarshal | 61.12 | 190.34 | 3.11x |
-BenchmarkMyExtendableProtoUnmarshal | 9.90 | 36.71 | 3.71x |
-BenchmarkOtherExtenableProtoUnmarshal | 21.90 | 52.13 | 2.38x |
-
\ No newline at end of file
diff --git a/conformance/internal/conformance_proto/conformance.pb.go b/conformance/internal/conformance_proto/conformance.pb.go
index a2fc4c8c..2ab15b5f 100644
--- a/conformance/internal/conformance_proto/conformance.pb.go
+++ b/conformance/internal/conformance_proto/conformance.pb.go
@@ -110,14 +110,15 @@ func (TestAllTypes_NestedEnum) EnumDescriptor() ([]byte, []int) {
// Represents a single test case's input. The testee should:
//
-// 1. parse this proto (which should always succeed)
-// 2. parse the protobuf or JSON payload in "payload" (which may fail)
-// 3. if the parse succeeded, serialize the message in the requested format.
+// 1. parse this proto (which should always succeed)
+// 2. parse the protobuf or JSON payload in "payload" (which may fail)
+// 3. if the parse succeeded, serialize the message in the requested format.
type ConformanceRequest struct {
// The payload (whether protobuf of JSON) is always for a TestAllTypes proto
// (see below).
//
// Types that are valid to be assigned to Payload:
+ //
// *ConformanceRequest_ProtobufPayload
// *ConformanceRequest_JsonPayload
Payload isConformanceRequest_Payload `protobuf_oneof:"payload"`
@@ -205,6 +206,7 @@ func (*ConformanceRequest) XXX_OneofWrappers() []interface{} {
// Represents a single test case's output.
type ConformanceResponse struct {
// Types that are valid to be assigned to Result:
+ //
// *ConformanceResponse_ParseError
// *ConformanceResponse_SerializeError
// *ConformanceResponse_RuntimeError
@@ -401,6 +403,7 @@ type TestAllTypes struct {
MapStringNestedEnum map[string]TestAllTypes_NestedEnum `protobuf:"bytes,73,rep,name=map_string_nested_enum,json=mapStringNestedEnum,proto3" json:"map_string_nested_enum,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=conformance.TestAllTypes_NestedEnum"`
MapStringForeignEnum map[string]ForeignEnum `protobuf:"bytes,74,rep,name=map_string_foreign_enum,json=mapStringForeignEnum,proto3" json:"map_string_foreign_enum,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=conformance.ForeignEnum"`
// Types that are valid to be assigned to OneofField:
+ //
// *TestAllTypes_OneofUint32
// *TestAllTypes_OneofNestedMessage
// *TestAllTypes_OneofString
diff --git a/go.mod b/go.mod
index 7c9f9d88..2b51da37 100644
--- a/go.mod
+++ b/go.mod
@@ -1,11 +1,13 @@
module github.com/cosmos/gogoproto
-go 1.18
+go 1.19
-require google.golang.org/grpc v1.50.1
+require (
+ github.com/golang/protobuf v1.5.2
+ google.golang.org/grpc v1.50.1
+)
require (
- github.com/golang/protobuf v1.5.2 // indirect
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
golang.org/x/sys v0.0.0-20220315194320-039c03cc5b86 // indirect
golang.org/x/text v0.3.7 // indirect
diff --git a/go.sum b/go.sum
index 07c86ff1..a3df6666 100644
--- a/go.sum
+++ b/go.sum
@@ -132,4 +132,4 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
\ No newline at end of file
diff --git a/gogoproto/doc.go b/gogoproto/doc.go
index 07c77b62..93ffb7b3 100644
--- a/gogoproto/doc.go
+++ b/gogoproto/doc.go
@@ -35,7 +35,7 @@ Package gogoproto provides extensions for protocol buffers to achieve:
- less typing by optionally generating extra helper code.
- goprotobuf compatibility
-More Canonical Go Structures
+# More Canonical Go Structures
A lot of time working with a goprotobuf struct will lead you to a place where you create another struct that is easier to work with and then have a function to copy the values between the two structs.
You might also find that basic structs that started their life as part of an API need to be sent over the wire. With gob, you could just send it. With goprotobuf, you need to make a parallel struct.
@@ -59,15 +59,15 @@ for a quicker overview.
The following message:
- package test;
+ package test;
- import "github.com/cosmos/gogoproto/gogoproto/gogo.proto";
+ import "gogoproto/gogo.proto";
- message A {
- optional string Description = 1 [(gogoproto.nullable) = false];
- optional int64 Number = 2 [(gogoproto.nullable) = false];
- optional bytes Id = 3 [(gogoproto.customtype) = "github.com/cosmos/gogoproto/test/custom.Uuid", (gogoproto.nullable) = false];
- }
+ message A {
+ optional string Description = 1 [(gogoproto.nullable) = false];
+ optional int64 Number = 2 [(gogoproto.nullable) = false];
+ optional bytes Id = 3 [(gogoproto.customtype) = "github.com/cosmos/gogoproto/test/custom.Uuid", (gogoproto.nullable) = false];
+ }
Will generate a go struct which looks a lot like this:
@@ -120,12 +120,12 @@ This is typically useful when working with a protocol buffer that was designed b
Gogoprotobuf also has some more subtle changes, these could be changed back:
- the generated package name for imports do not have the extra /filename.pb,
- but are actually the imports specified in the .proto file.
+ but are actually the imports specified in the .proto file.
Gogoprotobuf also has lost some features which should be brought back with time:
- Marshalling and unmarshalling with reflect and without the unsafe package,
- this requires work in pointer_reflect.go
+ this requires work in pointer_reflect.go
Why does nullable break protocol buffer specifications:
@@ -152,7 +152,7 @@ The enumprefix, getters and stringer extensions can be used to remove some of th
Less Typing and Peace of Mind is explained in their specific plugin folders godoc:
- - github.com/cosmos/gogoproto/plugin/