The sample code of Cloud Spanner using "The Clean Architecture". This is updated for Cloud Spanner based on memo_sample.
description of this project(Japanese)
env | content |
---|---|
SPN_PROJECT_ID | GCP project ID |
SPN_INSTANCE_ID | instance ID of Cloud Spanner |
SPN_DATABASE_ID | database in instance |
You can use local spanner emulator. So you must set an environment parameter SPANNER_EMULATOR_HOST.
go build
env SPANNER_EMULATOR_HOST=localhost:9999 ./memo_sample_spanner -local
static analysis tool dedicated to this project