• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..17-May-2021-

.repo-metadata.jsonH A D17-May-2021383 1312

CHANGES.mdH A D17-May-2021191 64

LICENSEH A D17-May-202111.1 KiB203169

README.mdH A D17-May-2021874 3227

acl.goH A D17-May-20218.7 KiB336268

bucket.goH A D17-May-202136.4 KiB1,189778

copy.goH A D17-May-20217.9 KiB229141

doc.goH A D17-May-20216 KiB1771

go.modH A D17-May-2021374 1512

go.sumH A D17-May-202115.1 KiB157156

go110.goH A D17-May-20211,003 3312

go_mod_tidy_hack.goH A D17-May-2021918 232

hmac.goH A D17-May-202110.8 KiB388241

iam.goH A D17-May-20213.4 KiB131100

invoke.goH A D17-May-20211.1 KiB3818

not_go110.goH A D17-May-20211.2 KiB4318

notifications.goH A D17-May-20215.8 KiB189116

reader.goH A D17-May-202111.7 KiB404276

storage.goH A D17-May-202143.9 KiB1,368884

storage.replayH A D17-May-20212.8 MiB30,06730,067

writer.goH A D17-May-20217.6 KiB261159

README.md

1## Cloud Storage [![GoDoc](https://godoc.org/cloud.google.com/go/storage?status.svg)](https://godoc.org/cloud.google.com/go/storage)
2
3- [About Cloud Storage](https://cloud.google.com/storage/)
4- [API documentation](https://cloud.google.com/storage/docs)
5- [Go client documentation](https://godoc.org/cloud.google.com/go/storage)
6- [Complete sample programs](https://github.com/GoogleCloudPlatform/golang-samples/tree/master/storage)
7
8### Example Usage
9
10First create a `storage.Client` to use throughout your application:
11
12[snip]:# (storage-1)
13```go
14client, err := storage.NewClient(ctx)
15if err != nil {
16	log.Fatal(err)
17}
18```
19
20[snip]:# (storage-2)
21```go
22// Read the object1 from bucket.
23rc, err := client.Bucket("bucket").Object("object1").NewReader(ctx)
24if err != nil {
25	log.Fatal(err)
26}
27defer rc.Close()
28body, err := ioutil.ReadAll(rc)
29if err != nil {
30	log.Fatal(err)
31}
32```