蝴蝶不菲
我在reddit中找到了解决方案例getItemInput := &dynamodb.GetItemInput{ Key: map[string]types.AttributeValue{ "Id": &types.AttributeValueMemberS{Value: id}, }, TableName: aws.String("TableName"), ConsistentRead: aws.Bool(true), ProjectionExpression: aws.String("Id, Name, Timestamp"),}