datastore: Update AllocateIDs to take keys. Update the Datastore's AllocateIDs call to accept variadic arguments similar to Get/Put/Delete/Exists. Structs can be supplied to populate their keys directly, and keys or key slices can be supplied to directly allocate keys. This adds some Key helper functions: - SameKind, which asserts that keys reference the same kind. - Partial, which returns a partial key given a source key. - WithID, which returns a derivative key with the specified ID. - NewIncompleteKeys, which allocates a slice of incomplete keys given a kind. BUG= Review-Url: https://codereview.chromium.org/2007123002
designed for testing and extensibility
(but generally it should be pretty stableish).
go get -u github.com/luci/gae/...
See the godocs.
master contains the latest code.user.email and user.name are configured in git config.go get -u github.com/maruel/pre-commit-go/cmd/... && pcgRun the following to setup the code review tool and create your first review:
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $HOME/src/depot_tools export PATH="$PATH:$HOME/src/depot_tools" cd $GOROOT/github.com/luci/gae git new-branch work # or `git checkout -b work origin/master` if you like typing more. # hack hack git commit -a -m "This is awesome\[email protected]" # This will ask for your Google Account credentials. git cl upload -s # Wait for LGTM over email. # Check Commit Queue checkbox in Rietveld codereview site. # See it tested and landed automatically.
Use git cl help and git cl help <cmd> for more details.