go | proto3 | mysql |
---|---|---|
float64 | double | double precision |
float32 | float | double precision |
int32 | int32 sint32 sfixed32 | integer |
int64 | int64 sint64 sfixed64 | bigint |
uint32 | uint32 fixed32 | integer unsigned |
uint64 | uint64 fixed64 | bigint unsigned |
bool | bool | bool |
string | string | varchar longtext |
[]byte | bytes | tinyint unsigend |
time.Time | datetime | |
byte | tinyint unsigned |