Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.