Created
June 19, 2017 10:33
-
-
Save petergtz/b5ad4a3eb590ce55137f928dd0f0e730 to your computer and use it in GitHub Desktop.
This file contains 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
writer := gcpClient.Bucket("my-gcp-bucket").Object("my-object").NewWriter(context.TODO()) | |
defer writer.Close() | |
_, e := io.Copy(writer, src) | |
if e != nil { | |
return errors.Wrapf(e, "Path %v", path) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment