Use unsafe pointer in the interface struct header is more correct way

This commit is contained in:
Nikita Tokarchuk
2020-06-04 18:15:08 +02:00
parent fd53c66690
commit 05ebb25e70
+1 -1
View File
@@ -8,7 +8,7 @@ import (
func IsNil(i interface{}) bool {
type iface struct {
_ *interface{}
_ unsafe.Pointer
ptr unsafe.Pointer
}