google-cloud-go
google-cloud-go copied to clipboard
spanner: grpc.WithInsecure is deprecated
The code and examples should use grpc.WithTransportCredentials(insecure.NewCredentials), otherwise people keep copy-pasting the deprecated code and using it in their codebase.
There are two parts to these fixes. One is the code that was manually written and then code that was automatically generated.
AFAIK, the upstream generators have been updated, but need to be run again.