Skip to content

Commit

Permalink
Corrected example documentation for dynamodb Attribute converters
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdel committed Aug 20, 2015
1 parent 3890fec commit 3482a8c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions service/dynamodb/dynamodbattribute/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@
//
// Convert dynamodb.AttributeValue to Concrete type: See (ExampleConvertFrom)
//
// r2 := Record{}
// err = dynamodbattribute.ConvertFrom(av, &r2)
// fmt.Println(err, reflect.DeepEqual(r, r2))
// r2 := Record{}
// err = dynamodbattribute.ConvertFrom(av, &r2)
// fmt.Println(err, reflect.DeepEqual(r, r2))
//
// Use Conversion utilities with DynamoDB.PutItem: See ()
//
// svc := dynamodb.New(nil)
// item, err := dynamodbattribute.ConvertToMap(r)
// if err != nil {
// fmt.Println("Failed to convert", err)
// return
// }
// result, err := svc.PutItem(&dynamodb.PutItemInput{
// Item: item,
// TableName: aws.String("exampleTable"),
// })
// svc := dynamodb.New(nil)
// item, err := dynamodbattribute.ConvertToMap(r)
// if err != nil {
// fmt.Println("Failed to convert", err)
// return
// }
// result, err := svc.PutItem(&dynamodb.PutItemInput{
// Item: item,
// TableName: aws.String("exampleTable"),
// })
package dynamodbattribute

import (
Expand Down

0 comments on commit 3482a8c

Please sign in to comment.