我正在寻找对以下语法的解释:
type GetBucketTaggingInput struct {
_ struct{} `locationName:"GetBucketTaggingRequest" type:"structure"`
// The name of the bucket for which to get the tagging information.
//
// Bucket is a required field
Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
}具体而言,这一行:
_ struct{} `locationName:"GetBucketTaggingRequest" type:"structure"`我知道标记是元数据,但是元数据是如何在这个上下文中使用的呢?而且,我也不明白:
_ struct{}关于Bucket变量,我也不确定除了所需字段之外是否需要元数据。
顺便说一句,这是AWS Go SDK中的。
谢谢!
https://stackoverflow.com/questions/62950068
复制相似问题