From 6aaa8d47701fa6cf07e914ec01fde3d4a1fe79c3 Mon Sep 17 00:00:00 2001 From: Zac Mullett Date: Sun, 24 Jan 2016 20:11:55 +0100 Subject: [PATCH] Adding repeated field data population example Signed-off-by: David Symonds --- README.md | 1 + proto/lib.go | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 12b39c3e..d48e91a2 100644 --- a/README.md +++ b/README.md @@ -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"), }, diff --git a/proto/lib.go b/proto/lib.go index 42a58c6f..0de8f8df 100644 --- a/proto/lib.go +++ b/proto/lib.go @@ -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"), },