From 094e0a46045a2d2d8c79b00c0cb98f8ef3aa62a1 Mon Sep 17 00:00:00 2001 From: Nic Pottier Date: Wed, 3 Apr 2019 11:25:23 -0500 Subject: [PATCH] remove errors dependency --- null.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/null.go b/null.go index 34feb5b..cc603e6 100644 --- a/null.go +++ b/null.go @@ -4,7 +4,7 @@ import ( "database/sql" "database/sql/driver" "encoding/json" - "errors" + "fmt" ) // Int is an int that will write as null when it is zero both to databases and json @@ -171,7 +171,7 @@ func (m *StringMap) Scan(src interface{}) error { case []byte: source = src.([]byte) default: - return errors.New("incompatible type for map") + return fmt.Errorf("incompatible type for map") } // 0 length string is same as nil