Skip to content

Instantly share code, notes, and snippets.

@rakyll
Last active August 29, 2015 14:06
Show Gist options
  • Save rakyll/3b1cb2bfb46119c773b7 to your computer and use it in GitHub Desktop.
Save rakyll/3b1cb2bfb46119c773b7 to your computer and use it in GitHub Desktop.
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