Go datastore query for getting a single entity?
go, google-app-engine
Solution
`GetAll` executes a query that returns all entities that match query conditions. If you want to return just one, set `Limit(limit int)` to 1.
Problem
The Datastore API reference for Go has a GetAll function that returns a slice of entities. Isn't there a method that just returns the first entity found instead of a list?