From 32455088f24d6b1e9a502fb8e40fdc16139dbea8 Mon Sep 17 00:00:00 2001 From: Eason Lin Date: Sun, 19 Aug 2018 07:14:33 +0800 Subject: [PATCH] doc: document ErrRecordNotFound error more clear (#2015) * doc: document ErrRecordNotFound error more clear * fix goimports * fix goimports * undo change --- errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors.go b/errors.go index da2cf13c..27c9a92d 100644 --- a/errors.go +++ b/errors.go @@ -6,7 +6,7 @@ import ( ) var ( - // ErrRecordNotFound record not found error, happens when haven't find any matched data when looking up with a struct + // ErrRecordNotFound record not found error, happens when only haven't find any matched data when looking up with a struct, finding a slice won't return this error ErrRecordNotFound = errors.New("record not found") // ErrInvalidSQL invalid SQL error, happens when you passed invalid SQL ErrInvalidSQL = errors.New("invalid SQL")