Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

Google Cloud Storage support for go-storage

License

NotificationsYou must be signed in to change notification settings

beyondstorage/go-service-gcs

Repository files navigation

Google Cloud Storage service support forgo-storage.

Notes

This package has been moved togo-storage.

go get go.beyondstorage.io/services/gcs/v3

Install

gogetgithub.com/beyondstorage/go-service-gcs/v2

Usage

import ("log"_"github.com/beyondstorage/go-service-gcs/v2""github.com/beyondstorage/go-storage/v4/services")funcmain() {store,err:=services.NewStoragerFromString("gcs://bucket_name/path/to/workdir?credential=file:<absolute_path_to_token_file>&project_id=<google_cloud_project_id>")iferr!=nil {log.Fatal(err)}// Write data from io.Reader into hello.txtn,err:=store.Write("hello.txt",r,length)}

Contributors10


[8]ページ先頭

©2009-2025 Movatter.jp