Skip to content

Instantly share code, notes, and snippets.

View csmith0651's full-sized avatar

Craig Smith csmith0651

  • Arlington, MA
View GitHub Profile
type S3Fetcher interface {
GetObject(*s3.GetObjectInput) (*s3.GetObjectOutput, error)
}
results, err := s3Client.GetObject(&s3.GetObjectInput{
Bucket: aws.String(bucket),
Key: aws.String(key),
})
package main
import (
"bytes"
"encoding/json"
"io"
"io/ioutil"
"log"
"github.com/aws/aws-sdk-go/aws"