spanner: fix the exported constant group
godoc.org cannot render the constant group without new lines
before comments. Adding new lines after each constant and moving
the exported names to their own group to be rendered correctly.
@@ -34,10 +34,7 @@ import (
const (
prodAddr = "spanner.googleapis.com:443"
- // Scope is scope for Cloud Spanner Data API.
- Scope = "https://www.googleapis.com/auth/spanner.data"
- // AdminScope is scope for Cloud Spanner Admin APIs.
- AdminScope = "https://www.googleapis.com/auth/spanner.admin"
+
// resourcePrefixHeader is the name of the metadata header used to indicate
// the resource being operated on.
resourcePrefixHeader = "google-cloud-resource-prefix"
@@ -46,6 +43,14 @@ const (
apiClientHeader = "x-goog-api-client"
)
+const (
+ // Scope is the scope for Cloud Spanner Data API.
+ Scope = "https://www.googleapis.com/auth/spanner.data"
+
+ // AdminScope is the scope for Cloud Spanner Admin APIs.
+ AdminScope = "https://www.googleapis.com/auth/spanner.admin"
+)
+
var (
validDBPattern = regexp.MustCompile("^projects/[^/]+/instances/[^/]+/databases/[^/]+$")
clientUserAgent = fmt.Sprintf("cloudspanner go/%s", runtime.Version())
