周玉环 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)
}