Skip to content
/ gcs Public

Google Cloud Storage wrapper library written in Go

License

Notifications You must be signed in to change notification settings

PrimaKu/gcs

Repository files navigation

GCS Manager

A Go library for managing Google Cloud Storage (GCS).

Installation

go get github.com/PrimaKu/gcs

Setup

gcsManager, err := gcs.NewGCSManager(credentialPath) // string
if err != nil {
  log.Fatalf("Failed to create GCS client: %v", err)
}

Upload File

gcsManager.UploadFile(bucketName, fileName, file) // string, string, os.File