GAE GO数据存储中最大的数据类型

GAE GO数据存储中最大的数据类型,go,types,google-cloud-datastore,Go,Types,Google Cloud Datastore,google appengine go数据存储中最大的数据类型是什么。我遇到了字符串类型的限制,它只允许500个字符。谢谢大家! 使用[]字节,它可以存储。您可以使用[]字节(“Foo”)将字符串转换为字节,然后使用string()将字符串取回 数据存储中允许的数据类型: - signed integers (int, int8, int16, int32 and int64), - bool, - string, - float32 and float64, - any type whose

google appengine go数据存储中最大的数据类型是什么。我遇到了字符串类型的限制,它只允许500个字符。谢谢大家!

使用
[]字节,它可以存储。您可以使用
[]字节(“Foo”)
将字符串转换为字节,然后使用
string()
将字符串取回

数据存储中允许的数据类型:

- signed integers (int, int8, int16, int32 and int64),
- bool,
- string,
- float32 and float64,
- any type whose underlying type is one of the above predeclared types,
- *Key,
- time.Time,
- appengine.BlobKey,
- []byte (up to 1 megabyte in length),
- slices of any of the above.
如果您想存储更大的数据,如大图像,请使用。它允许最多32兆字节的数据