From 05ebb25e702e2c6d8faf8d3d6504dfe1fad150e1 Mon Sep 17 00:00:00 2001 From: Nikita Tokarchuk Date: Thu, 4 Jun 2020 18:15:08 +0200 Subject: [PATCH] Use unsafe pointer in the interface struct header is more correct way --- mongox/utils/isnil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongox/utils/isnil.go b/mongox/utils/isnil.go index 9c32162..d3f13f7 100644 --- a/mongox/utils/isnil.go +++ b/mongox/utils/isnil.go @@ -8,7 +8,7 @@ import ( func IsNil(i interface{}) bool { type iface struct { - _ *interface{} + _ unsafe.Pointer ptr unsafe.Pointer }