go-gorp/gorp

Get() returns interface{} in case of no row found

Arman92 opened this issue · 2 comments

According to the Get function description:

Returns a pointer to a struct that matches or nil if no row is found.

DbMap.Get(i interface{}, keys ...interface{}) should return nil when no row found, but returns empty interface{}.

Any updates in this issue?

Feel free to send a PR with either a fix for the documentation or a code change with tests.