Skip to content

Instantly share code, notes, and snippets.

@csmith0651
Created May 25, 2016 12:51
Show Gist options
  • Save csmith0651/48dfc02ee21fcae7b55d16c1568e9848 to your computer and use it in GitHub Desktop.
Save csmith0651/48dfc02ee21fcae7b55d16c1568e9848 to your computer and use it in GitHub Desktop.
func (fetcher *fileFetcher) GetObject(s3Input *s3.GetObjectInput) (*s3.GetObjectOutput, error) {
// completely ignore the input, just return an object wrapping the fetcher.data
log.Printf("reading offers from file '%s'", fetcher.file)
return &s3.GetObjectOutput{
Body: *(NewMockBody(fetcher.data)),
}, nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment