Last active
August 29, 2015 14:05
-
-
Save jimtla/fa9095d85ee1ba54c431 to your computer and use it in GitHub Desktop.
Code Sample for Go Leaks blog post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func resizeAndWrite(img image.Image, width int, path string, c chan error) { | |
newImg := resize.Resize(uint(width), 0, img, resize.Bicubic) | |
err := writeJpegToS3(s, newImg, path) | |
// Write back to the channel with the status of the S3 write operation. | |
c <- err | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment