File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -161,9 +161,6 @@ Consider file test.proto, containing
161161 required string label = 1;
162162 optional int32 type = 2 [default=77];
163163 repeated int64 reps = 3;
164- optional group OptionalGroup = 4 {
165- required string RequiredField = 5;
166- }
167164 }
168165```
169166
@@ -180,13 +177,10 @@ To create and play with a Test object from the example package,
180177 )
181178
182179 func main () {
183- test := &example.Test {
180+ test := &example.Test {
184181 Label: proto.String (" hello" ),
185182 Type: proto.Int32 (17 ),
186183 Reps: []int64 {1 , 2 , 3 },
187- Optionalgroup: &example.Test_OptionalGroup {
188- RequiredField: proto.String (" good bye" ),
189- },
190184 }
191185 data , err := proto.Marshal (test)
192186 if err != nil {
You can’t perform that action at this time.
0 commit comments