Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.10.0 to 1.11.0. - [Release notes](https://github.com/spf13/afero/releases) - [Commits](https://github.com/spf13/afero/compare/v1.10.0...v1.11.0) --- updated-dependencies: - dependency-name: github.com/spf13/afero 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)
}