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

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