1
0
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:
Nick Craig-Wood
2018-06-17 17:59:12 +01:00
parent 3f0789e2db
commit 08021c4636
2474 changed files with 435818 additions and 282709 deletions

View File

@@ -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)
}
}