首页 > 解决方案 > 结构类型第一行:_ 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 无法显示)

标签: go

解决方案


推荐阅读