-
-
Save kkdai/96a7c3a9c1b74d40330c1b132b023726 to your computer and use it in GitHub Desktop.
Test Uploader GCP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"cloud.google.com/go/storage" | |
"context" | |
"log" | |
) | |
const ( | |
projectID = "your-project-id" // FILL IN WITH YOURS | |
bucketName = "your-bucket-name" // FILL IN WITH YOURS | |
) | |
func main() { | |
_, err := storage.NewClient(context.Background()) | |
if err != nil { | |
log.Fatalf("Failed to create client: %v", err) | |
} | |
log.Print("login GCP success") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment