title: Cant unmarshall dynamodb attribute
body: <p>I'm experimenting with AWS-SDK-GO with the DynamoDB API...</p>
  
  <p>I'm trying to query the db and return a string. But I'm having some issues  unmarshelling the return value.... </p>
  
  <p>struct</p>
  
  <pre><code>type Item struct {
       slug string
       destination string
  }
  </code></pre>
  
  <p>query function</p>
  
  <pre><code>input := &amp;dynamodb.GetItemInput{
      Key: map[string]*dynamodb.AttributeValue{
          "slug": {
              S: aws.String(slug),
          },
      },
      TableName: db.TableName,
  }
  
  result, err := db.dynamo.GetItem(input)
  if err != nil {
      return "",  err
  }
  
  n := Item{}
  err = dynamodbattribute.UnmarshalMap(result.Item, &amp;n)
  
  if err != nil {
      log.Printf("Failed to unmarshal Record, %v", err)
      return "", err
  }
  log.Printf("dump %+v", n)
  log.Printf("echo %s", n.slug)
  log.Printf("echo %s", n.destination)
  log.Printf("orig %v", result.Item)
  </code></pre>
  
  <p>result</p>
  
  <pre><code>2017/10/11 14:21:34 dump {slug: destination:}
  2017/10/11 14:21:34 echo 
  2017/10/11 14:21:34 echo 
  2017/10/11 14:21:34 orig map[destination:{
    S: "http://example.com"
  } slug:{
    S: "abcde"
  }]
  </code></pre>
  
  <p>Why is Item being returned empty?</p>
  
  <p>I've tried to look everywhere but find no solution....</p>