Files
cloudpods/vendor/cloud.google.com/go/storage
Jian QiuandQiu Jian 26089ffde0 fix: make condition eval compatible with go 1.18 (#14534)
* fix: make condition eval compatible with go 1.18

* fix: update circle-ci image to yunion/centos-build:go-1.18.3-0

* update go,mod go version to 1.18

* update vendor

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-28 00:29:56 +08:00
..
2020-03-03 14:36:11 +08:00
2022-04-18 17:59:55 +08:00
2022-04-18 17:59:55 +08:00
2022-04-18 17:59:55 +08:00
2022-04-18 17:59:55 +08:00
2022-04-18 17:59:55 +08:00
2020-03-03 14:36:11 +08:00
2022-04-18 17:59:55 +08:00
2020-03-03 14:36:11 +08:00
2020-03-03 14:36:11 +08:00
2020-03-03 14:36:11 +08:00
2022-04-18 17:59:55 +08:00
2022-04-18 17:59:55 +08:00
2020-03-03 14:36:11 +08:00
2022-04-18 17:59:55 +08:00
2022-04-18 17:59:55 +08:00

Cloud Storage GoDoc

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 := ioutil.ReadAll(rc)
if err != nil {
	log.Fatal(err)
}