Add Bytes type

This commit is contained in:
Mathieu Acthernoene 2017-01-05 18:32:54 +01:00
parent af1ed8a2fb
commit a8d641cd8d

View File

@ -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<number>")
case descriptor.FieldDescriptorProto_TYPE_STRING:
return fmt.Sprintf(template, "string")
case descriptor.FieldDescriptorProto_TYPE_ENUM: