go - Golang _ struct {} 在一个结构中。它的目的是什么?
问题描述
在下面的结构定义中,_ struct{}
字段的用途是什么?为什么它在那里?
type DeleteItemOutput struct {
_ struct{} `type:"structure"`
Attributes map[string]*AttributeValue `type:"map"`
ConsumedCapacity *ConsumedCapacity `type:"structure"`
ItemCollectionMetrics *ItemCollectionMetrics `type:"structure"`
}
解决方案
推荐阅读
- c# - 在 Selenium C# 中的 Shadow Root 下提取值
- mysql - 如何使用 Python 3.6 在 mysql 查询中返回键值对数组
- python-3.x - 由于 nbclient,Testbook 给出超时错误
- linux - 具有多个传出 IP 的 Docker 容器
- windows - 批处理文件 - 当前工作目录干扰环境变量 CD
- reactjs - React Stripe 结帐多个行项目
- google-apps-script - 如何通过谷歌应用脚本在一个单元格中应用多个数据验证规则?
- python - 不同类别的堆积条形图颜色
- python - 按 id 分组并根据日期计算销售变化
- python - 我试图将 Python 添加到 VSCode,但它不起作用