mirror of
https://github.com/miniflux/v2.git
synced 2025-07-02 16:38:37 +00:00
Update vendor dependencies
This commit is contained in:
parent
34a3fe426b
commit
459bb4531f
747 changed files with 89857 additions and 39711 deletions
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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue