tree: 80e47d87743ccefab95a8bd2ef10e8f5f33d9d61 [path history] [tgz]
  1. acl.go
  2. bucket.go
  3. CHANGES.md
  4. copy.go
  5. doc.go
  6. go.mod
  7. go.sum
  8. go110.go
  9. go_mod_tidy_hack.go
  10. hmac.go
  11. iam.go
  12. invoke.go
  13. LICENSE
  14. not_go110.go
  15. notifications.go
  16. post_policy_v4.go
  17. reader.go
  18. README.md
  19. storage.go
  20. storage.replay
  21. writer.go
third_party/golibs/vendor/cloud.google.com/go/storage/README.md

Cloud Storage Go Reference

Example Usage

First create a storage.Client to use throughout your application:

client, err := storage.NewClient(ctx)
if err != nil {
	log.Fatal(err)
}
// Read the object1 from bucket.
rc, err := client.Bucket("bucket").Object("object1").NewReader(ctx)
if err != nil {
	log.Fatal(err)
}
defer rc.Close()
body, err := ioutil.ReadAll(rc)
if err != nil {
	log.Fatal(err)
}