Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNil

func IsNil(arg interface{}) bool

IsNil does proper nil check for interface{} values taken from users "== nil" check for interfaces are not enough when an nil pointer is assigned to interface, it returns false from "== nil" check Example: var pnt *int var inf interface{} inf = pnt fmt.Println(inf == nil) // false fmt.Println(isNil(inf)) // true

Types

This section is empty.

Source Files