Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.37.0 to 1.38.0. - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-cloud-go/compare/spanner/v1.37.0...spanner/v1.38.0) --- updated-dependencies: - dependency-name: cloud.google.com/go/storage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| internal | ||
| CHANGES.md | ||
| LICENSE | ||
| README.md | ||
| acl.go | ||
| bucket.go | ||
| client.go | ||
| copy.go | ||
| doc.go | ||
| emulator_test.sh | ||
| grpc_client.go | ||
| hmac.go | ||
| http_client.go | ||
| iam.go | ||
| invoke.go | ||
| notifications.go | ||
| option.go | ||
| post_policy_v4.go | ||
| reader.go | ||
| storage.go | ||
| storage.replay | ||
| writer.go | ||
README.md
Cloud Storage 
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 := io.ReadAll(rc)
if err != nil {
log.Fatal(err)
}