周玉环 d906a41c2e first commit il y a 2 jours
..
internal d906a41c2e first commit il y a 2 jours
CHANGES.md d906a41c2e first commit il y a 2 jours
LICENSE d906a41c2e first commit il y a 2 jours
README.md d906a41c2e first commit il y a 2 jours
acl.go d906a41c2e first commit il y a 2 jours
bucket.go d906a41c2e first commit il y a 2 jours
client.go d906a41c2e first commit il y a 2 jours
copy.go d906a41c2e first commit il y a 2 jours
doc.go d906a41c2e first commit il y a 2 jours
emulator_test.sh d906a41c2e first commit il y a 2 jours
grpc_client.go d906a41c2e first commit il y a 2 jours
hmac.go d906a41c2e first commit il y a 2 jours
http_client.go d906a41c2e first commit il y a 2 jours
iam.go d906a41c2e first commit il y a 2 jours
invoke.go d906a41c2e first commit il y a 2 jours
notifications.go d906a41c2e first commit il y a 2 jours
option.go d906a41c2e first commit il y a 2 jours
post_policy_v4.go d906a41c2e first commit il y a 2 jours
reader.go d906a41c2e first commit il y a 2 jours
storage.go d906a41c2e first commit il y a 2 jours
storage.replay d906a41c2e first commit il y a 2 jours
writer.go d906a41c2e first commit il y a 2 jours

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 := io.ReadAll(rc)
if err != nil {
	log.Fatal(err)
}