我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

为什么保存1个字符时数据存储区在属性上使用文本类型

I have the following:

type Foo struct {
   BarX string
   BarY string
}

When setting BarX = x and BarY = y, the Datastore Viewer is showing BarX as being Text and BarY as being String. I would expect both to be String due to the length of the data.

I can't find any documentation on how to change this anywhere?

近期文章

  • 多边形重叠百分比
  • (Golang)JWT RS512验证
  • Golang中RWMutex.Lock()的实现
  • 如何在Golang中使用Couch DB查询限制
  • Go不会为所有HTML页面呈现CSS元素
  • 在user32.dll中找不到SetWindowsHookEx过程
  • Elasticsearch获取日期类型的所有字段
  • 如何定义go结构来存储此Yaml结构?
  • 了解golang并发上下文中通道的正确使用
  • grpc REST网关中的ETag和304 Not Modified响应
  • Golang pgp无需加密
  • 尝试配置Windows服务的失败操作失败并显示访问被拒绝错误
  • Gomobile绑定:不支持的基本类型:uint64
  • Mgo聚合:如何重用模型类型来查询和解组“混合”结果?
  • 在etcd v3中进行比较和交换?
  • BoltDB:定期刷新到磁盘
  • Golang模拟函数被调用两次
  • 将全局引用传递给beego控制器
  • 从Go程序中读取媒体密钥
  • Golang-将hijri转换为公历以获取假期(是否通过API)

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华