From 4d2b5a18c4de39f44ed1829cf663748f7c30e5cf Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Wed, 6 May 2020 09:51:41 -0500 Subject: [PATCH] Clarify Value.Get() documentation Specifying behavior for Status Null and Undefined is incorrect because a Value is not required to have a Status. In addition, standard behavior is to return nil, not pgtype.Null when the Status is pgtype.Null. --- pgtype.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pgtype.go b/pgtype.go index 997899d8..c002150c 100644 --- a/pgtype.go +++ b/pgtype.go @@ -115,8 +115,7 @@ type Value interface { // Set converts and assigns src to itself. Set(src interface{}) error - // Get returns the simplest representation of Value. If the Value is Null or - // Undefined that is the return value. If no simpler representation is + // Get returns the simplest representation of Value. If no simpler representation is // possible, then Get() returns Value. Get() interface{}