зеркало из https://github.com/golang/protobuf.git
Adding repeated field data population example
Signed-off-by: David Symonds <dsymonds@golang.org>
This commit is contained in:
Родитель
5fc2294e65
Коммит
6aaa8d4770
|
@ -140,6 +140,7 @@ To create and play with a Test object from the example package,
|
|||
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"),
|
||||
},
|
||||
|
|
|
@ -235,6 +235,7 @@ To create and play with a Test object:
|
|||
test := &pb.Test{
|
||||
Label: proto.String("hello"),
|
||||
Type: proto.Int32(17),
|
||||
Reps: []int64{1, 2, 3},
|
||||
Optionalgroup: &pb.Test_OptionalGroup{
|
||||
RequiredField: proto.String("good bye"),
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче