Skip to content

Instantly share code, notes, and snippets.

View doncicuto's full-sized avatar

Miguel Cabrerizo doncicuto

View GitHub Profile
@doncicuto
doncicuto / main.go
Created January 24, 2018 07:55
DynamoDB Tutorial Part 3 (Delete an Item)
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
)
@doncicuto
doncicuto / main.go
Created January 24, 2018 07:48
DynamoDB Tutorial Part 3 (Update an Item conditionally)
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
)
@doncicuto
doncicuto / main.go
Created January 24, 2018 07:31
DynamoDB Tutorial Part 3 (Increment Atomic Counter)
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
)
@doncicuto
doncicuto / main.go
Created January 24, 2018 07:15
DynamoDB Tutorial Part 3 (Update an Item)
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
)
@doncicuto
doncicuto / main.go
Created January 23, 2018 08:14
DynamoDB Tutorial Part 3 (Read an Item)
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
)
@doncicuto
doncicuto / main.go
Created January 23, 2018 07:17
DynamoDB Tutorial Part 3 (Create a new Item)
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
)
@doncicuto
doncicuto / main.go
Created January 22, 2018 17:01
DynamoDB Tutorial Part 2
package main
import (
"encoding/json"
"fmt"
"os"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
@doncicuto
doncicuto / main.go
Last active January 22, 2018 14:41
DynamoDB Tutorial Part 1
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
)