Skip to content
crowdmatt edited this page Apr 2, 2013 · 2 revisions

Example of how to use the DynamoDB:

  // This assumes you have ENV vars: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
  auth, err := aws.EnvAuth()
  if err != nil {
    log.Fatal(err.Error())
  }

  ddbs := dynamodb.Server{auth, aws.USEast}
  response, err := ddbs.ListTables()
  if err != nil {
    log.Fatal(err.Error())
  }
  
  fmt.Fprintf(w, "The tablenames are %s!", strings.Join(response, ", "))
Clone this wiki locally