This repository was archived by the owner on Oct 19, 2021. It is now read-only.
generated frombeyondstorage/go-service-example
- Notifications
You must be signed in to change notification settings - Fork2
Google Cloud Storage support for go-storage
License
NotificationsYou must be signed in to change notification settings
beyondstorage/go-service-gcs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Google Cloud Storage service support forgo-storage.
This package has been moved togo-storage.
go get go.beyondstorage.io/services/gcs/v3
gogetgithub.com/beyondstorage/go-service-gcs/v2
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)}
- See more examples ingo-storage-example.
- Readmore docs about go-service-gcs.
About
Google Cloud Storage support for go-storage
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.