xxxxxxxxxx
resp, err := s3svc.GetObject(context.TODO(), &s3.GetObjectInput{ })
if err != nil {
// handle error
return
}
// Make sure to always close the response Body when finished
defer resp.Body.Close()
decoder := json.NewDecoder(resp.Body)
if err := decoder.Decode(&myStruct); err != nil {
// handle error
return
}