src/index.js
function get(datastore, kind, namespace) {
    return function(id, cb) {
        var keyParam = [kind, id];
        if (namespace) {
            keyParam = {
                namespace: namespace,
                path: keyParam
            };
        }
        var key = datastore.key(keyParam);

        datastore.get(key, function(err, entity) {
            if (err)
                return cb(err);

            return cb(null, entity ? entity : null);
        });
    };
}
function get(datastore, kind, namespace) {
    return function(id, cb) {
        var keyParam = [kind, id];
        if (namespace) {
            keyParam = {
                namespace: namespace,
                path: keyParam
            };
        }
        var key = datastore.key(keyParam);

        datastore.get(key, function(err, entity) {
            if (err)
                return cb(err);

            return cb(null, entity ? entity : null);
        });
    };
}
function get ( datastore , kind , namespace ) { return function ( id , cb ) { var keyParam = [ kind , id ] ; if ( namespace ) { keyParam = { namespace : namespace , path : keyParam } ; } var key = datastore . key ( keyParam ) ; datastore . get ( key , function ( err , entity ) { if ( err ) return cb ( err ) ; return cb ( null , entity ? entity : null ) ; } ) ; } ; }
Given a datastore reference and a kind, will return a function that will get a single entity by key

@param {Object} datastore A reference to the datastore Object
@param {String} kind The entity kind
@returns {Function} The get function
Given a datastore reference and a kind will return a function that will get a single entity by key