1
0
Fork 0
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:
Frédéric Guillot 2018-07-06 21:18:14 -07:00
parent 34a3fe426b
commit 459bb4531f
747 changed files with 89857 additions and 39711 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)
}
}