| commit | abd3b412d3c2460d848b6b81478fcb4e542d6327 | [log] [tgz] |
|---|---|---|
| author | David Symonds <dsymonds@golang.org> | Fri Nov 28 11:43:44 2014 +1100 |
| committer | David Symonds <dsymonds@golang.org> | Fri Nov 28 11:43:51 2014 +1100 |
| tree | b468782c4380c52ff08851ce4802db8eae80c35f | |
| parent | aec3ce103c5571c237126cf8e3e12b58c1af635f [diff] [blame] |
Support proto3.
diff --git a/proto/text_parser.go b/proto/text_parser.go index 4885bd7..f733f30 100644 --- a/proto/text_parser.go +++ b/proto/text_parser.go
@@ -409,6 +409,10 @@ if typ.Elem().Kind() != reflect.Ptr { break } + } else if typ.Kind() == reflect.String { + // The proto3 exception is for a string field, + // which requires a colon. + break } needColon = false }