coopernurse/gorp — pull request #185 by medvednikov (2014-07-09 14:09:21+00:00)
Title: Allow nil receivers

For example:

var p *Person //
dmap.SelectOne(&p, query)

If nothing was found, the receiver is still

This is supported in other mappers like mgo because it requires less typing if
you need a pointer, and it's also easier to check if nothing was found by
simply comparing the receiver to nil afterwards:

if p == nil {
error("User was not found!")
}