tree: 9c377cba3ff14c579f029896f13159f3cf1fd820 [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. go110_test.go
  16. go_mod_tidy_hack.go
  17. hmac.go
  18. hmac_test.go
  19. iam.go
  20. integration_test.go
  21. internal/
  22. invoke.go
  23. mock_test.go
  24. not_go110.go
  25. not_go110_test.go
  26. notifications.go
  27. notifications_test.go
  28. oc_test.go
  29. post_policy_v4.go
  30. reader.go
  31. reader_go114_test.go
  32. reader_test.go
  33. retry_test.go
  34. storage.go
  35. storage.replay
  36. storage_test.go
  37. writer.go
  38. 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)
}