()
| 29 | } |
| 30 | |
| 31 | func ExampleClient() { |
| 32 | c, err := NewClient("example.appspot.com", http.DefaultClient) |
| 33 | if err != nil { |
| 34 | log.Fatal(err) |
| 35 | } |
| 36 | |
| 37 | ctx := context.Background() // or from a request |
| 38 | ctx = c.NewContext(ctx) |
| 39 | _, err = datastore.Put(ctx, datastore.NewIncompleteKey(ctx, "Foo", nil), struct{ Bar int }{42}) |
| 40 | if err != nil { |
| 41 | log.Fatal(err) |
| 42 | } |
| 43 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…