These are all structurally equivalent but the tag numbers differ. (It's remarkable that required, optional, and repeated all have 8 letters.)
()
| 38 | // (It's remarkable that required, optional, and repeated all have |
| 39 | // 8 letters.) |
| 40 | func initGoTest_RequiredGroup() *pb2.GoTest_RequiredGroup { |
| 41 | return &pb2.GoTest_RequiredGroup{ |
| 42 | RequiredField: proto.String("required"), |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func initGoTest_OptionalGroup() *pb2.GoTest_OptionalGroup { |
| 47 | return &pb2.GoTest_OptionalGroup{ |