周玉环 d906a41c2e first commit 2 өдөр өмнө
..
internal d906a41c2e first commit 2 өдөр өмнө
CHANGES.md d906a41c2e first commit 2 өдөр өмнө
LICENSE d906a41c2e first commit 2 өдөр өмнө
README.md d906a41c2e first commit 2 өдөр өмнө
acl.go d906a41c2e first commit 2 өдөр өмнө
bucket.go d906a41c2e first commit 2 өдөр өмнө
client.go d906a41c2e first commit 2 өдөр өмнө
copy.go d906a41c2e first commit 2 өдөр өмнө
doc.go d906a41c2e first commit 2 өдөр өмнө
emulator_test.sh d906a41c2e first commit 2 өдөр өмнө
grpc_client.go d906a41c2e first commit 2 өдөр өмнө
hmac.go d906a41c2e first commit 2 өдөр өмнө
http_client.go d906a41c2e first commit 2 өдөр өмнө
iam.go d906a41c2e first commit 2 өдөр өмнө
invoke.go d906a41c2e first commit 2 өдөр өмнө
notifications.go d906a41c2e first commit 2 өдөр өмнө
option.go d906a41c2e first commit 2 өдөр өмнө
post_policy_v4.go d906a41c2e first commit 2 өдөр өмнө
reader.go d906a41c2e first commit 2 өдөр өмнө
storage.go d906a41c2e first commit 2 өдөр өмнө
storage.replay d906a41c2e first commit 2 өдөр өмнө
writer.go d906a41c2e first commit 2 өдөр өмнө

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