tree: a2a873ab1dd1b4e8a1745665871f393eb4b1ff5d [path history] [tgz]
  1. CHANGES.md
  2. README.md
  3. acl.go
  4. acl_test.go
  5. bucket.go
  6. bucket_test.go
  7. conformance_test.go
  8. copy.go
  9. copy_test.go
  10. doc.go
  11. example_test.go
  12. go.mod
  13. go.sum
  14. go110.go
  15. go_mod_tidy_hack.go
  16. hmac.go
  17. hmac_test.go
  18. iam.go
  19. integration_test.go
  20. internal/
  21. invoke.go
  22. invoke_test.go
  23. mock_test.go
  24. not_go110.go
  25. notifications.go
  26. notifications_test.go
  27. oc_test.go
  28. reader.go
  29. reader_test.go
  30. retry_test.go
  31. storage.go
  32. storage.replay
  33. storage_test.go
  34. writer.go
  35. writer_test.go
storage/README.md

Cloud Storage GoDoc

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)
}