Prechádzať zdrojové kódy

README.md: remove usage of group in example (#673)

Removed reference to groups entirely.

Fixes #564
Thomas Crain 7 rokov pred
rodič
commit
89a0c16f4d
1 zmenil súbory, kde vykonal 1 pridanie a 7 odobranie
  1. 1 7
      README.md

+ 1 - 7
README.md

@@ -161,9 +161,6 @@ Consider file test.proto, containing
 	  required string label = 1;
 	  optional int32 type = 2 [default=77];
 	  repeated int64 reps = 3;
-	  optional group OptionalGroup = 4 {
-	    required string RequiredField = 5;
-	  }
 	}
 ```
 
@@ -180,13 +177,10 @@ To create and play with a Test object from the example package,
 	)
 
 	func main() {
-		test := &example.Test {
+		test := &example.Test{
 			Label: proto.String("hello"),
 			Type:  proto.Int32(17),
 			Reps:  []int64{1, 2, 3},
-			Optionalgroup: &example.Test_OptionalGroup {
-				RequiredField: proto.String("good bye"),
-			},
 		}
 		data, err := proto.Marshal(test)
 		if err != nil {