Last active
August 29, 2015 14:06
-
-
Save rakyll/3b1cb2bfb46119c773b7 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
conf, err := google.NewServiceAccountJSONConfig( | |
"/Users/jbd/Downloads/burcu-gce-a44c472553f8.json", | |
storage.ScopeFullControl) | |
if err != nil { | |
log.Fatal(err) | |
} | |
b := storage.New(conf.NewTransport()).Bucket("bamboo-shift-504") | |
b.Copy("filename1", &storage.ObjectInfo{ | |
Bucket: "another-bucket", | |
Name: "filename1", | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment