go - 结构类型第一行:_ struct{}
问题描述
我在所有结构类型的开头都看到了这行代码github.com/aws/aws-sdk-go/service/ec2
:
type InstanceState struct {
_ struct{} `type:"structure"` <<<<<<<<<<<<<<<<<<
...
}
有人可以告诉我这是如何使用的以及它到底做了什么吗?
更新:查看https://github.com/aws/aws-sdk-go/blob/master/service/ec2/api.go第 78405 行(无法链接到 git,因为文件太大,github 无法显示)
解决方案
推荐阅读
- gradle - Grails 4 Spring 安全插件
- python - 绘制日期与时间。Python
- flutter - 用颤振构建一个简单的表
- keras - Keras多输出:如何将类权重应用于一个输出,而不影响其他输出
- postgresql - PGBouncer 中的 Spark JDBC 和事务池
- c++ - 如何从一行中提取名称
- postgresql - 错误:文本搜索配置不存在
- react-native-flatlist - 即使数据数组是干净的,React 本机 Flatlist 数据也不会清除
- javascript - 无法自定义表单错误,因为服务器返回 422 Unprocessable Entity 而没有返回错误
- git - 应该相等的合并git分支实际上有很多差异