mirror of
https://github.com/rclone/rclone.git
synced 2025-12-20 18:23:31 +00:00
vendor: update all dependencies
This commit is contained in:
19
vendor/google.golang.org/appengine/remote_api/client_test.go
generated
vendored
19
vendor/google.golang.org/appengine/remote_api/client_test.go
generated
vendored
@@ -5,7 +5,12 @@
|
||||
package remote_api
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
"google.golang.org/appengine/datastore"
|
||||
)
|
||||
|
||||
func TestAppIDRE(t *testing.T) {
|
||||
@@ -22,3 +27,17 @@ func TestAppIDRE(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func ExampleClient() {
|
||||
c, err := NewClient("example.appspot.com", http.DefaultClient)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
ctx := context.Background() // or from a request
|
||||
ctx = c.NewContext(ctx)
|
||||
_, err = datastore.Put(ctx, datastore.NewIncompleteKey(ctx, "Foo", nil), struct{ Bar int }{42})
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user