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

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