Skip to content

Commit 89a0c16

Browse files
tmcraindsnet
authored andcommitted
README.md: remove usage of group in example (#673)
Removed reference to groups entirely. Fixes #564
1 parent 7d1b268 commit 89a0c16

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)