Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
spanner
✓ cloud.google.com/go/spanner
Creates a Spanner client for a given database.
package main
import (
"context"
"cloud.google.com/go/spanner"
)
func main() {
ctx := context.Background()
client, err := spanner.NewClient(ctx, "projects/my-project/instances/my-instance/databases/my-db")
if err != nil {
panic(err)
}
defer client.Close()
_ = client
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.91.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.