From a8d641cd8d9b65f13d4c53a92fbf69a5cd8beed6 Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Thu, 5 Jan 2017 18:32:54 +0100 Subject: [PATCH] Add Bytes type --- helpers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers.go b/helpers.go index d11c967..038f3ee 100644 --- a/helpers.go +++ b/helpers.go @@ -165,6 +165,8 @@ func jsType(f *descriptor.FieldDescriptorProto) string { return fmt.Sprintf(template, "number") case descriptor.FieldDescriptorProto_TYPE_BOOL: return fmt.Sprintf(template, "boolean") + case descriptor.FieldDescriptorProto_TYPE_BYTES: + return fmt.Sprintf(template, "Array") case descriptor.FieldDescriptorProto_TYPE_STRING: return fmt.Sprintf(template, "string") case descriptor.FieldDescriptorProto_TYPE_ENUM: