use variadics and fix build tags for App Engine files

This commit is contained in:
Andrew Gerrand
2014-09-30 07:38:10 +10:00
parent f8fee03cb3
commit 040e271ca2
3 changed files with 6 additions and 9 deletions

View File

@@ -112,10 +112,8 @@ func Example_serviceAccounts() {
}
func Example_appEngine() {
context := appengine.NewContext(nil)
config := google.NewAppEngineConfig(context, []string{
"https://www.googleapis.com/auth/bigquery",
})
c := appengine.NewContext(nil)
config := google.NewAppEngineConfig(c, "https://www.googleapis.com/auth/bigquery")
// The following client will be authorized by the App Engine
// app's service account for the provided scopes.
client := http.Client{Transport: config.NewTransport()}