Skip to content

Instantly share code, notes, and snippets.

@kkdai
Last active April 12, 2022 06:51
Show Gist options
  • Save kkdai/1a81605d33f22603762354e981990596 to your computer and use it in GitHub Desktop.
Save kkdai/1a81605d33f22603762354e981990596 to your computer and use it in GitHub Desktop.
func testGCP() err {
client, err := storage.NewClient(context.Background())
if err != nil {
fmt.Fatalf("Failed to create client: %v", err)
return err
}
defer client.Close()
fmt.Println("GCP connection succeessed!")
return nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment